472,328 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 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 ;)

Jun 12 '07 #1
1 2382
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

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...
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...
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...
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...
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...
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

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.