473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ByteArray to Image Control

J-T
Is it possible to assign a byte Array to an Image control on my page.I
googled this and most of the examples use the response.WriteBinary but I
want to have this image some where in my page.This approach wipes out all my
other controls and only shows the picture.

Thanks a lot
Nov 19 '05 #1
2 14044
An HTML page cannot display a picture. A page can only reference a picture
at a separate URL.
This is a limitation of Internet Explorer.

I suggest you create a special page (or HTTPHandler) for outputting the
image(s).
Here's more info:
http://SteveOrr.net/articles/ImproveYourImages.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"J-T" <Ra*****@microsoft.com> wrote in message
news:ud**************@TK2MSFTNGP09.phx.gbl...
Is it possible to assign a byte Array to an Image control on my page.I
googled this and most of the examples use the response.WriteBinary but I
want to have this image some where in my page.This approach wipes out all
my other controls and only shows the picture.

Thanks a lot

Nov 19 '05 #2
J-T
Thanks ,I created a special page (aspx and not ascx) and my problem got
solved.I appreciate your help.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
An HTML page cannot display a picture. A page can only reference a
picture at a separate URL.
This is a limitation of Internet Explorer.

I suggest you create a special page (or HTTPHandler) for outputting the
image(s).
Here's more info:
http://SteveOrr.net/articles/ImproveYourImages.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"J-T" <Ra*****@microsoft.com> wrote in message
news:ud**************@TK2MSFTNGP09.phx.gbl...
Is it possible to assign a byte Array to an Image control on my page.I
googled this and most of the examples use the response.WriteBinary but I
want to have this image some where in my page.This approach wipes out all
my other controls and only shows the picture.

Thanks a lot


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kristina Engdahl | last post by:
Hello, I'm working with dynamic classloading and have encountered a problem when it comes to defining an URL for a file that is available through a bytearray representing a jar-file. The file in...
2
by: RichardF | last post by:
Can anyone tell me what is wrong with this code? I want to get the ocntents of the JPEG image into a byte array. After the theStream.read call, the theBytes array is still filled with all...
4
by: vbdotnetmania | last post by:
I have the following snippet of code with bm being a succesfully stored bitmap (not including all the code just the relevant bits) Dim g As Graphics Dim g2 As Graphics Dim bm As Bitmap Dim bm2...
1
by: gijamie911 | last post by:
int nBytes = 256; byte ByteArray = new byte; int nBytesRead = inputStream.Read(ByteArray, 0 , nBytes); recorderID = ""; for (int i...
0
by: mmahoi | last post by:
Hi there, I wanted to change the monochrome bitmap to byte array and send the pixel data to the serial thermal printer. When i convert the bitmap to byte array, the first two byte i get is...
1
by: sumithsumith | last post by:
anybody can help me to display the bytearray data into a text box???? i am able to use the Response.BinaryWrite().... SqlConnection con=new SqlConnection("server=localhost;Persist Security...
11
by: Icemokka | last post by:
Hi, I'm need to upload a big file ( 600Mb+ ) to a BLOB field in MSSQL 2005. My code looks like this : fs = New FileStream(sFilePath, FileMode.Open) Dim ByteArray(fs.Length) As Byte...
4
by: rsgalloway | last post by:
I'm trying to save an image from a Flash AS3 to my server as a jpg file. I found some PHP code to do this, but I want to do this in Python. I'm not quite sure how to convert the following code to...
0
by: Sudhagar76 | last post by:
Hi all, I am working on creating ACTIVEX control for smart client application. I need to convert the image avialable in my local folder (C:\Scan\Image.tiff or Image.bmp) into Byte Array. I need to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.