painful to implement since that isn’t how GDR works. you’d need the other’s IP address to send/load from. loading is the best option, and the server would need to send the public IP address and an accepted port (which can also only be opened for listening by AIR, so the entire idea falls apart here)

painful to implement since that isn’t how GDR works. you’d need the other’s IP address to send/load from. loading is the best option, and the server would need to send the public IP address and an accepted port (which can also only be opened for listening by AIR, so the entire idea falls apart here)

I haven’t worked with networking stuff in AS so I dunno what the whole process is. All I know is that with some PHP magic you can upload pics, so is it so hard to download them? Then again I can just be spewing bullshit. I’m waving in the dark here.

I was thinking on a simple Base64 encoding when you click the share pic button, then just sharing it with a code (as in the codebox).

the overhead isn’t nice. sharing the raw bytes is far easier on the server; and since the protocol is binary and sent with a length header, no issues can arise from it as does when presenting Base64 to the user or needing to save it as ASCII for a dated database format.

I haven’t worked with networking stuff in AS so I dunno what the whole process is. All I know is that with some PHP magic you can upload pics, so is it so hard to download them? Then again I can just be spewing bullshit. I’m waving in the dark here.

from a server? no, downloading even at the most basic level of networking is very easy.

the problem is that flash has security restrictions for, you know, security.

I tried pretty hard for a day or two just trying to get the imgur API to work but I had a lot of trouble uploading the file from the computer and getting it to be in the format that the API needs to take. :/

I tried pretty hard for a day or two just trying to get the imgur API to work but I had a lot of trouble uploading the file from the computer and getting it to be in the format that the API needs to take. :/

Can’t you just use a normal web host with a flash cross-domain access file so the game can upload to it? I find it hard to believe that the demand for image sharing would be so high it would do your host damage (particularly if files only lasted a short time … even minutes would be enough for what people want to do here, I think).

Can’t you just use a normal web host with a flash cross-domain access file so the game can upload to it? I find it hard to believe that the demand for image sharing would be so high it would do your host damage (particularly if files only lasted a short time … even minutes would be enough for what people want to do here, I think).

typical chat messages use around 10% of the allotted bandwidth; code uses more and both of these are compressed; and being ASCII, they compress extremely well, over 60% efficiency in most cases.

images are raw data, not a limited subset of a byte; they compress very poorly using standard techniques, and even using special and/or lossy techniques (such as jpeg) result in large file sizes; compressed data doesn’t compress well (for obvious reasons) and can even be inflated in size (P.IO compresses all outbound messages, including those that carry image data). moderate image usage, ignoring storage costs, would cover at least 40% of the allotted bandwidth, if not over 60% (i’m being very conservative here, it’ll probably bust the limit)

a specialized high-bandwidth and low cost (or free) service is pretty much the single option for hosting images for an app as small in scope as GDR

Well, I’d have to save it to my own website on clientside, opening up a whole ton of exploits possible (and spamming my host with images if they possibly wanted to). So that’s out unless its a 3rd party site like imgur or imageshack, both of which have semi-functioning APIs.

So… I made a class that uploads pics (not b64 strings) directly to the server, but I’m only able to use it when I play the SWF locally. I’ve tried on megaswf and kong. What do I have to do? I’m totally ignorant on the security/permissions topic and don’t even know what to look for in Google.

So… I made a class that uploads pics (not b64 strings) directly to the server, but I’m only able to use it when I play the SWF locally. I’ve tried on megaswf and kong. What do I have to do? I’m totally ignorant on the security/permissions topic and don’t even know what to look for in Google.

depends on where you’re uploading it. a website you don’t have control over? crossdomain.xml. a website you have control over? crossdomain.xml.

Hey, do you like games? So do we — that’s what makes Kongregate the best source of free games online. We have thousands upon thousands of free online games, from both one-man indies and large studios, rated and filtered so you can play the best of the best. Read more »