Image factory with mobile webforms! Help me!!!

G

Gabriel

hi

I have a ImageFactory.aspx page that in its Load event
generate an image...

ImageFactory.aspx
-------------------

private void Page_Load(object sender, System.EventArgs e)
{
// Response Gif image
Response.ContentType = "image/gif";

const int width = 20, height = 20;
Bitmap objBitmap = new Bitmap(width, height);

bla bla bla...

MemoryStream memoryStream = new MemoryStream();
objBitmap.Save(memoryStream,
System.Drawing.Imaging.ImageFormat.Gif);

// clean up...
objGraphics.Dispose();
objBitmap.Dispose();

Response.BinaryWrite(memoryStream.ToArray());
memoryStream.Close();
}

In another mobile page (main.aspx), I have an Image movile
control...

Main.aspx
---------

Image1.ImageUrl = "ImageFactory.aspx";


The problem is:
---------------

The main.aspx page works in Internet Explorer Desktop, but
does not
work with Microsoft Mobile Explorer 3.0 and other
emulators!


Is not possible use "Image Factory" in Mobile App?

thanks

Gabriel
 
M

Marijn Ros

-----Original Message-----
hi

I have a ImageFactory.aspx page that in its Load event
generate an image...

ImageFactory.aspx
-------------------

private void Page_Load(object sender, System.EventArgs e)
{
// Response Gif image
Response.ContentType = "image/gif";

const int width = 20, height = 20;
Bitmap objBitmap = new Bitmap(width, height);

bla bla bla...

MemoryStream memoryStream = new MemoryStream();
objBitmap.Save(memoryStream,
System.Drawing.Imaging.ImageFormat.Gif);

// clean up...
objGraphics.Dispose();
objBitmap.Dispose();

Response.BinaryWrite(memoryStream.ToArray());
memoryStream.Close();
}

In another mobile page (main.aspx), I have an Image movile
control...

Main.aspx
---------

Image1.ImageUrl = "ImageFactory.aspx";


The problem is:
---------------

The main.aspx page works in Internet Explorer Desktop, but
does not
work with Microsoft Mobile Explorer 3.0 and other
emulators!


Is not possible use "Image Factory" in Mobile App?

Are you sure Mobile Explorer supports Gif? WAP-clients
tend to only support WBMP, for example.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top