473,388 Members | 1,213 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,388 software developers and data experts.

Convert Binary Data to an Image

Hi guys,

i have to code an "interface interpreter" via asp.
The Code searchs in a DB for an Identcode, puts this Code in a XML-Structure, sends (XMLHTTP) this structure to an other server and receive the return xml-structure.

The Return contains a gif-image in a Binary-String, that musst be converted an returned to the Client. The String looks like 474946383961010001F00000FFFFFF0000002C[...]

I thought it musst be easy, but theres a little Problem in my code, that i cant find...

Expand|Select|Wrap|Line Numbers
  1. dim i
  2. For i = 1 To len(myByteString) -1 step 2
  3.   Response.Write chr ( "&H" & mid( myByteString, i, 2 ) )
  4. Next
Allmost all seams to work correct he converts 47 to G 49 to I 46 to F and so on...
But the 00 doesnt get convertet correctly. Why?

IIRC the &H00 is a nul-Value. But how to get the ASP to put-out a nul?

Can anyone help me? Please ;)

Greetingz
Thomas
Jun 12 '07 #1
1 2436
Hi again,

News: The Original image size is 677 Byte.
The Output of my Code is 659 Byte.

The Differenz of 18 Byte - like i Thought - 18 combinations of 00.

Of course Response.Write &H00 does nothing, also Response.Write NULL

How can i get my code to put out a null-value? Any Ideas?
Jun 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: SD | last post by:
Hi, This is driving me nuts, I have a table that stores notes regarding an operation in an IMAGE data type field in MS SQL Server 2000. I can read and write no problem using Access using the...
1
by: mevar81 | last post by:
Hello to everybody.I have a problem.I used a TypeDescriptor to retrieve a TypeConverter to convert an Image to a string.The problem is that it converts the image to the string...
0
by: Lucas Cowald | last post by:
Hi, Using ASP and VBScript. How to convert JPEG image into a binary data? Is it possible with a command from ASP / VBScript without having to put it into a database first? I want to take the...
2
by: Lucas Cowald | last post by:
Hi, Using ASP and VBScript. How to convert JPEG image into a binary data? Is it possible with a command from ASP / VBScript without having to put it into a database first? I want to take the...
5
by: Trammel | last post by:
Hi, I have a vb.net program made to grab screenshots and then store them in image objects. The image is displayed in a pictureBox atm but I want to store the data in a String only. (Without...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.