Re: applescript-users digest, Vol 3 #588 - 13 msgs
Re: applescript-users digest, Vol 3 #588 - 13 msgs
- Subject: Re: applescript-users digest, Vol 3 #588 - 13 msgs
- From: email@hidden
- Date: Wed, 3 Jul 2002 03:04:31 EDT
Michael,
I'm not familiar with the base-64 encoding you speak of,
but you may want to take a look at graphic converter as
step in the process, since it can generate various text
file-formats for graphics, such as ASCII and C, and that
should be simple enough to store into your SQL database.
SAMPLE C format (5 pixels x 2 pixels displayed)
/* GIMP C-Source image dump */
static const struct {
unsigned int width;
unsigned int height;
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
unsigned char pixel_data[5 * 2 * 3];
} gimp_image = {
5, 2, 3,
"\255\255\255\163*D\251\255\000\163*D=5\174\163*D=5\174\163*D\251\255\000"
"\163*D"
};
SAMPLE TEXT FORMAT (about 5 pixels x 2 pixels -- note results in 3 files (one
red/one blue/one green)):
5 2
255 42 255 42 53
42 53 42 255 42
Best Wishes,
Marc Glasgow
In a message dated 7/2/02 2:35:04 PM,
email@hidden writes:
>
Hi, all! I would like to get the base64-encoded content of
>
a file (JPEG or GIF) to write it into a SQL-Database. I
>
tried Tanakas OSAX, but my MSSQL contains special
>
characters then and after decoding the result is not the
>
same as the source.
>
>
Can anybody help me? Maybe something like set myBase64Str
>
to encode64(myFilePath)
>
>
Thanx,
>
>
Michael Schmidt Hamburg
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.