View Full Version : Accessing the contents of an image's source
08-25-2006, 06:16 PM
Is it possible to access the actual data found in an image's source on the client side?
I don't mean the "src" attribute of the IMG tag. I mean the actual image data that the browser would retrieve when it fetches the image for display.
08-25-2006, 09:24 PM
:confused: Are you talking about the raw file data? Why are you trying to access it? Are you trying to alter it or something?
08-25-2006, 10:05 PM
08-25-2006, 10:17 PM
:confused: Still not sure what/why. The server will know what it is 'serving' but it would take a substantial [server side] script to even attempt to access the packeted data.
It would help to know exactly what data you are trying to pull from the raw graphic data and for what purpose you need to access it. Right now we are just talking theory rather than practical application.
09-01-2006, 08:54 PM
I mainly just need to check images on the client side that are displayed on the web page that come of external sources without having to download them server side and then server them up again. The checking won't be anything fancy and isn't something I couldn't do if there was some way to access the image data.
09-02-2006, 06:45 AM
Are you trying to check attributes [like image file size]? If so, you will need server side code [I suggest php]. On the upload it will run your check and either complete the upload or abort it. This can get complicated depending on what you are trying to do. Google for graphic based php script snippits and see if you can locate a starting point.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.