Write data in binary file / Convert Image 
Author Message
 Write data in binary file / Convert Image

Hi,

I have two questions regarding VBScript:

1.) I want to write binary data in a file (get this back as a variant from a
COM Object). Has someone an idea how to do this? Can't use the
FileSystemObject in VBScript because this doesn't create binary files.

2.) I want to convert BMP images in another file format (JPG/GIF/PNG) with
VBScript. Does anyone know a object which can do this?

Thanks in advance.

Patella



Tue, 02 Mar 2004 00:58:36 GMT  
 Write data in binary file / Convert Image
Hi,

For your first question, yes FSO does not support binary data access. You
can write a VB ActiveX DLL for binary file access, I guess you are trying
to play with SQL or ACCESS binary data field and image files together. If
so, remember that getChunk will return a byte array which you can pass to
your VB COM object for process.

Regards,
Ben



Tue, 02 Mar 2004 19:09:22 GMT  
 Write data in binary file / Convert Image
I think you are wrong. You can write binary data files in VBS using the
filesystem object. And you can convert bitmap files too. In order to prove
it, I'm writing a small vbs image class.
Follow this temporary link :
http://www.serialscripter.com/scripts/temp_pic.vbs
I will remove this link when my class will be finished.

Hope this helps.



Quote:
> Hi,

> For your first question, yes FSO does not support binary data access. You
> can write a VB ActiveX DLL for binary file access, I guess you are trying
> to play with SQL or ACCESS binary data field and image files together. If
> so, remember that getChunk will return a byte array which you can pass to
> your VB COM object for process.

> Regards,
> Ben



Tue, 02 Mar 2004 23:24:45 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Database I/O error

2. Write image data as binary to append existing file

3. Q: How i can set eg myDBEdit to accepts only arithmetic values ? eg 0 ,1,2,3,4,5,6...

4. Write binary data from SQL as image/bitmap in RTF

5. Getting binary data for image and writing/reading it

6. Write ADO Field containing binary data (files) to the file system

7. Borland Pascal

8. Delphi Database Book - know any good ones?

9. Writing binary data to a file...

10. How to write binary data into a file?

11. Writing binary data to file with VBScript?

12. convert binary data to string data

 

 
Powered by phpBB® Forum Software