Javascript :: Image Dimensions = Client Side After File Upload Selection

Feb 8, 2011

I have an upload form for an image. The user clicks browse and selects a file. How can I get the image dimensions the moment the user selects the file (before the file is even uploaded to the server). It obviously has to be something client-side with maybe javascript/jquery or flash/flex (prefer js//jquery though), but can either of them do this? This is the code I'm using to tie into zozo's getImgSize() function, but it gives me 0*0 as size.

[Code]...

View 1 Replies


Similar Posts:


Javascript :: File Compression Before Upload On The Client-side

Dec 4, 2011

Basically I'll be working with large XML files (approx. 20 - 50 MB). These files needs to be uploaded on a server.I know it isn't possible to touch the files with javascript, nor to implement HTTP compression on the client-side.

My question is that if any solution exists (flash / action script) that compresses a file and has a javascript API? The scenario is this:

Trying to upload 50 MB XML file Before upload a grab it with Javascript and send it to the compressor.Upload the compressed file instead of the original one.

View 4 Replies

Javascript :: Multiple File Upload (client Side)?

Jan 5, 2012

I'm looking for multiple file upload component with alternative ways.I need HTML5, Flash and normal upload support, depended by device.I don't like FancyUpload, because it uses mootools and mootools is very big library.Also I can't use jQuery, because I'm writing on Ext js and it's not good idea to use two big library like jQuery and Ext js.

View 2 Replies

Get Video Dimensions Before Upload Client-side?

Feb 8, 2011

I have an upload form for an video. The user clicks browse and selects a file. How can I get the video dimensions the moment the user selects the file (before the file is even uploaded to the server). It obviously has to be something client-side with maybe javascript/jquery or flash/flex (prefer js//jquery though), but can either of them do this?

View 1 Replies

Javascript :: Component To Upload Multiple Images With Client Side Crop

Mar 5, 2011

I'm looking a quick way to add an (multi) image unloader with client side crop to an ASP.NET MVC site and for some reason the search seems to be much more complicated than I thought upload image (can be via form post or custom, just has to work with ASP.NET)custom crop possibility before upload (preferred) multiple images at once It doesn't matter if js/jquery, silverlight or flash is used, it just has to work, its an internal application and I can force people to have the necessary plugins installed.

[Code]...

View 1 Replies

Javascript :: Implementing A Client-side Image Editor

Aug 13, 2010

We want a web app that allows a user to edit images on the browser and we're trying to decide which technology to use. We want to support simple image customization, such as high-quality resizing, cropping, image merging, and color transformations, as well as the addition of text elements with different fonts and colors.

The current options are: Flash: no worries about cross-browser compatibility; could use same image library on client and server; no iPhone/iPad support. Java (compiled to javascript with GWT): need to find a good image library in pure Java so it can be compiled to JS. Plain old javascript + HTML5: may be a mess due to multiple browsers; may need to write image editing code from scratch. Here's what's most important to us / criteria for choosing:

Image consistency: the image that the client edits on the browser must be exactly the same as the one we'll eventually use on the backend. We can achieve this by (a) having the same library both on the client and server to process images, (b) having the client generate the image and upload it to the server, or (c) use two different image processing libraries on the client/server and hope for the best in terms of consistency.

Option (a) seems best, but it would only be possible if we use Flash or Java/GWT. We don't like option (b) because the images are large; we'd rather save a sequence of operations to perform on a raw image than saving multiple transformed images. And we don't really know if option (c) is safe or not. Scalability: We prefer the client to do as much work as possible to decrease server load. Image quality must be kept high
Cross-platform: We'd like to support as many platforms as possible without rewriting everything (big negative for Flash due to iPhone/iPads).

View 3 Replies

Javascript :: Define A Custom Selection / Mask On An Image (script Online Just After An Upload)

Mar 12, 2012

I'm looking for a script which allows the creation of a custom selection on a image online. This step is just after an upload. As a picture is worth a thousand words:

View 1 Replies

Flash :: Client - Side Image Processing - Creating A PNG Image From A PDF File

Feb 1, 2010

We're building a web-based application that requires heavy image processing. We'd like this processing load to be on the client as much as possible and we'd like to support as much platforms (even mobiles) as much as possible. Here's the info: Image processing is rasterization from some data. Think like creating a PNG image from a PDF file. We don't have a lot of server power. So client-side processing is a bit of a must.

So, we're considering: Flash - most widespread, but from what i read has lackluster development tools. (and no iPhone/iPad support for now). Silverlight - allows us to use .NET CLR, so a big ++ (a lot of code is in .NET). But is not supported for most mobiles ( rumored android support in the future) HTML5 + Javascript - probably the most "portable" option. The problem is having to rewrite all that image processing code in Javascript.

Clarification: I don't need further ideas on what libraries are available for Silverlight and Javascript. My dilemma is choosing Silverlight means no support for most mobiles choosing Flash means we have to redevelop most of our code AND no iPhone/iPad support HTML5 + Javascript we have to redevelop most of our code and not fully supported yet in all browsers choosing two (Silverlight + Flash) will be too costly Any out-of-the-box or bright ideas / alternatives

View 14 Replies

Flash :: Saving An Image As A File On The Client Side?

Feb 1, 2011

I'm rather inexperienced with flash and as3, and I've been given a task of writing a program that downloads images from URLs that are provided, and saves them to a specified location on the user's computer.

The idea is to be able to download multiple images (user selects them) and download them all to a single directory (which the user selects first) so that he doesn't have to download them one by one. Also, putting them in an archive and downloading as one file wasn't an option.The only solution I found is using FileReference.save(), which won't work for me because it opens a save dialog.

View 1 Replies

Javascript :: Securing A Client-side API

Apr 27, 2011

I'm building a server-side API and client-side library for a JavaScript-based game where two very important features must be secured. A user must be debited for each play We must ensure that the score that gets submitted is the actual earned score by the player. Solving the first problem seems simple; at the beginning of each play we hit the API, debit the user's account and return a unique Play ID. When we submit the user's score for that play, we pass the ID issued at the beginning.

The second one has me a little stumped. Initially I considered a client-side hashing algorithm based on the ID and the score, but quickly realized that the Javascript that produces the hash could easily be reverse-engineered, even if it was obfuscated. At this point I considered a small flash component that generates the hash, but I've heard that even compiled flash can be decompiled.

[Code]...

View 5 Replies

Javascript :: Relation Between Client Side Scripts And DBMS

Nov 2, 2011

Today I heared something weird from someone, he said that using Javascript at the front end with Oracle DB that gives high performance than the performance if used Flash(ActionScript) with Oracle, while MySQL have the same performance with any client side scripting. Is that right?, Does client side scripts have anything to do with DBMS ?

View 1 Replies

ActionScript 2.0 :: Client Side Image Resizing

May 4, 2006

Is flash capable to resize images in clients computer and then upload them?

View 6 Replies

Flex :: Creating Client Side PDF With Image Using AlivePDF

Jan 24, 2011

I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf. I am taking the image inside a canvas. How do I control my images so that they come fit on that pdf file for any image size that I take.

View 1 Replies

Flash :: Flex - Client-side Image Processing?

Sep 20, 2011

I'm creating some image uploader in Flex with client-side image processing. Processing consists of two steps:
1. Resizing (solved)

2. Converting resized image (represented by ByteArray in PNG32 with alpha-channel) to gray-scale PNG with bit-depth = 2 and no color-palette. Is there any existing library that is capable of second step? Something like libpng for C++, maybe?Edit:It seem I stumbled upon rarely encountered problem. However my descision was to create an AS3 class that is capable of converting bitmapData to 2bit grayscale PNG. I used standart PNGEncoder and PNG format specification (which is not so good as I expected) as basis.

View 1 Replies

PHP :: How To Get File Size At Client Side

Sep 21, 2011

How can I get file size at client side using actionscript and javascript.

View 3 Replies

Flash :: Checking Uploaded Image Resolution And Detials At Client Side?

May 30, 2011

In flex, what we do, we normally upload the image from flex end and upload it to the serveri want to know, can we do some details checking, like i want to find out the imageesolution(on the client side) before it is uploaded to the server,There are going to be two profits, first the client doesn't need to wait for long to image get uploaded, and in case if finding the image resolution is on the server end, so it willtake time, even the image to be uploaded is not of expected resolutionsecond, the user interaction & interface with the flex application will be improved,

View 4 Replies

Php :: Load .swf File Quickly At Client Side

Aug 5, 2010

Any tips or methods(encryption, plugins etc) to load flash files (i.e. swf) as quickly as possible at the client side? consider files size is between 5MB - 10MB....

View 3 Replies

Valid Strategy For Secure Image Upload From Flash Client?

Apr 27, 2010

I'm creating a flash application that will post images to a url for saving to disk/display later. I was wondering what are some suggested strategies for making this secure enough so that the upload is verified as coming from the application and not just some random form post. Is it reliable enough to check referring location realizing that I don't need bulletproof security, or perhaps setting authentication headers is a better strategy even though it seems unreliable from what I have read. The application and the server script will reside on the same domain and is in java - is there a way to check for a 'session' or something like that?

Another thought I had was some sort of simple hashed key type system, I could hard-code a key into the flash application and pass something to the server based on that - the server would also know this key and be able to verify if the value passed was based on that? The app is a public app, so authenticating users is not an option. After more research I am thinking about using a hard coded salt key on both ends, then sending an MD5 hash of the base64 encoded image bytearray+salt to be matched on the server side.

View 1 Replies

Check If A Certain File Exists On The Client-side Using Flash?

Sep 5, 2009

Don't mind about the file's content, just want to know if it exists or not...

View 3 Replies

Flex :: Reading Client Side Excel File?

Sep 20, 2011

I need to read a excel file from the client side and show it to data grid. I tried searching but could not find something relevant.

View 1 Replies

ActionScript 2.0 :: Play .wav File Located On The Client Side?

Jun 21, 2004

I would like to know whether is it possible that Actionscript play .wav files that are stored on the client side? If yes, how? Otherwise, what are the alternatives to enable playback of wave files on the user's computer? I plan to create a button that will playback pre-recorded speech(mp3 format stored in the server) as well as user recorded speech (.wav format stored on the client side after user recorded the speech). How can I do so? I would want to make it away that it appears like a Q&A conversation session between the computer (mp3) and user (recorded wave).

View 5 Replies

Javascript :: Passing File Paths From Flash To JavaScript For Upload?

Sep 29, 2010

Is it possible to pass file names from a running Flash application, which only purpose is to enable multiple-file-selection, to a JavaScript application which handles upload of all files to the server?I have examined various Flash upload solutions (like SWFUpload, Uploadify, etc.) and none of them meets my needs. I want an easy to implement solution (like Uploadify) which also lets me specify various parts of the HTTP request.

The reason I need this is because my upload form uses session cookies (for user authentication) and an CSRF token both passed to the server when uploading files.Is it technically possible to pass filenames (+ paths) to a JavaScript application which then handles the upload?

View 1 Replies

ActionScript 3.0 :: Upload File In Server Side?

Aug 13, 2009

i want upload file in server side actionscript ( FMS ).

View 5 Replies

ActionScript 3.0 :: Check When Certain File Exists On Client-side Using A Script?

Sep 5, 2009

Don't really care about reading/writing the file, just want to verify that it exists...

View 3 Replies

Compress Wave File On Server And Decompress In Flash / Client Side?

Sep 8, 2011

im using an open source program called Festival that generates text to speech, and in ubuntu i call its method text2wave that converts text into a wave file. I am looking into converting short paragraphs to wave files, but the problem is that each wave file ends up being approximately 1.2MB in size. The wave file is recorded at 16khz, and while recording at 8khz halves the size of the wave file (sacrificing sound quality), the wave file is just simply too large. These paragraphs have to be served many times to the clients and our server can not support that much bandwidth. Is it possible to compress the file on the server, and decompress it in my flash script (on the client side) and play the wave?

View 1 Replies

ActionScript 3.0 :: Upload And Download A File From Client Machine To Server

Jan 22, 2009

How to upload and download a file from client machine to server.

View 1 Replies

Javascript :: Agile Uploader (resizes Image Before Upload On The Server): Doesn't Work If Image Name Has Cyrillic Letters

Jan 31, 2012

I'm using Agile Uploader in my project to resize image before upload on client side.And it works fine except one thing: if image name contains cyrillic letters it fails with server error 500.

How to avoid this or if needed how to rename file with english letters "on fly" (possibly with javascript).

View 1 Replies

Java :: Encrypt Sqlite Db File With Server Side / So Flex / Air Client Can Read It?

Jan 23, 2012

We are trying to create a sqlite db file using java on the server, and encrypt it.Then we send the encrypted db file to a client's pc, which has an Adobe Air desktop app running.The air app then needs to be able to open/read-from the encrypted db file (client is read-only).We are using java 1.6, flex/actionscript 4.5, and Air 3.1.We can create the sqlite db file on the server and send it to the client, and it can be read by the client without issues, when we do not encrypt it.But we are having trouble with the encryption part. We've read quite a lot of documentation about Actionscript's ability to open encrypted sqlite files using AES + CCM (URL...).And we're trying to use java's crypto package to encrypt the sqlite db file.The encryption is important because we don't want the client to be able to open the sqlite db file with any sqlite browser, only with our Air application.

View 1 Replies

Flash :: Flex Building An Application With Client Side And Server Side

Sep 3, 2011

I want to create an application that has these features

- At client side: Display a list of images, when user click on one image, data will be stored in MySQL database.

- At server side: Manage images used in client side, I can delete, add new images.

Is this possible for me to achieve this using Flex? And if it is able, will my output be 2 separate SWF files? And where can I find the materials to read on writing such applications?

View 1 Replies

ActionScript 2.0 :: Possibe To Upload File In Flash Itself Not Any Server Side Code?

Nov 14, 2011

i want to upload a image file on stage in flash as2 itself using file reference,not using any other server side code,can it possible.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved