Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

http get JPG to Image

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-25-2008, 11:13 AM
Knows the basics
 
Join Date: Mar 2008
Location: germany, Heidelberg
Posts: 90
Default http get JPG to Image

Hi,

i want to receive a *.jpg with http get and show it directly as image on the form . Is there a way to show the jpg-image directly without saving to a file?

Last edited by mamuen : 03-25-2008 at 12:59 PM.
Reply With Quote
  #2 (permalink)  
Old 03-26-2008, 02:02 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

It is possible using the new Door library (which is only available for registered users).
Bitmap (Stream) constructor is invoked: http://msdn2.microsoft.com/en-us/library/z7ha67kw.aspx
Code:
'WebRequest1 is a WebRequest object, WebResponse is a WebResponse object (HTTP)
'
obj is an Object (Door library), args is an ObjectArray (Door)
Sub Globals
    
End Sub

Sub App_Start
    Form1.Show
    WebRequest1.New1(
"http://www.basic4ppc.com/images/desktop.jpg")
    WebResponse.New1
    obj.New1(
false)
    args.New1(
1)
    
    WebResponse.Value = WebRequest1.GetResponse
    args.SetObject(
0,WebResponse.GetStream) '
    obj.CreateNew2("System.Drawing.Bitmap" & obj.System_Drawing,args.Value)
    Form1.Image = obj.Value
End Sub
Reply With Quote
  #3 (permalink)  
Old 03-26-2008, 09:42 PM
Knows the basics
 
Join Date: Mar 2008
Location: germany, Heidelberg
Posts: 90
Default

Hi Erel,

I have bought a used PDA (VPA compact II) with a full Basic4PPC 5.5 vesion from EBay. My first Project is, to make my PDA to remotecontrol for my Soundserver. I am programming a client for the mpd-demon and i want to put it to your Open Source Projects.

Have a look at http://www.musicpd.org/ or the wiki http://mpd.wikia.com/wiki/Main_Page

Regards Manuen

Last edited by mamuen : 03-27-2008 at 12:58 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
http cookies jonjk2029 Questions (Windows Mobile) 2 08-24-2008 06:19 PM
HTTP Bug NEW3 dibesw Italian Forum 5 08-02-2008 01:21 PM
HTTP Post ohkovar Questions (Windows Mobile) 3 07-07-2007 05:36 PM
HTTP Lib problem Lasse Questions (Windows Mobile) 5 06-04-2007 04:49 PM
Move an image inside an image control Cableguy Questions (Windows Mobile) 5 05-14-2007 08:40 PM


All times are GMT. The time now is 01:37 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0