GfW - Send Icon

11 views
Skip to first unread message

saqeb.akhter

unread,
Jan 25, 2010, 9:17:22 AM1/25/10
to growl for windows
Hey,

I'm trying to send an Icon from my app running on the iPhone. It sends
notifications to GfW on incoming calls, smses, etc.

I want to be able to send the Icon as well though, I read in the *.doc
file provided in the site that :

"The value for application.Icon can be a file path, a URL, or an array
of bytes representing the raw binary data."

I'm trying to the raw binary data of a png file.... as an array of
char* .... is that correct? I'm not seeing any picture though. Using
GfW 2.0.

Brian Dunnington

unread,
Jan 25, 2010, 12:48:37 PM1/25/10
to growl-fo...@googlegroups.com
for sending binary data (such as images), you have to do things a
little differently. since the binary data could contain the char for
line-endings and trip up the GNTP parser, you have to indicate that
the data will be binary with a resource pointer and then include the
binary data in a special section at the end of the message. take a
look at the attached sample notification data (a real notification
sent from Visual Studio). the important parts are:

Notification-Icon: x-growl-resource://ea0d5dfb552a4eabf4c0959ef69496f2

(where the 'ea0...f2' bit is the md5 hash of the binary data), and:

Identifier: ea0d5dfb552a4eabf4c0959ef69496f2
Length: 4509

[PNG data]

note that the 'Identifier' header contains the same value from the
x-growl-resource:// indicator. also make sure you put the extra line
breaks in the right places to indicate the various sections.

try that out and let me know how it goes.

> --
> You received this message because you are subscribed to the Google Groups "growl for windows" group.
> To post to this group, send email to growl-fo...@googlegroups.com.
> To unsubscribe from this group, send email to growl-for-wind...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/growl-for-windows?hl=en.
>
>

send_icon_as_bytes_example.txt
Reply all
Reply to author
Forward
0 new messages