SaveData - image

can the save data function be used to save a local copy of an image from a URL in a data source? I only seem to get the URL text in the file, no images saved locally.

hey Oliver,
I would like to download the image from the specified URL in the source to a location on the local disk with a click of a check box. basically an offline copy of the data if internet connection is not available ( after the initial download, off course )

Similar Messages

  • Saving and Loading specific properties of an Image

    Hey everyone. I'm currently in the process of developing a game which allows you to customize the color (hue) of your character via a slider. What I would like to happen is: Upon clicking either Accept or Play, it will save the current hue of the image, navigating back to that page will load what was previously saved (hue), as well as when starting the game, it will replace the standard graphic with the previously saved image.
    Below is the code I have right now that pertains to the image with a basic non-functioning properly saving and loading code:
    import flash.events.KeyboardEvent;
    // open a local shared object called "myStuff", if there is no such object - create a new one
    var savedstuff:SharedObject = SharedObject.getLocal("myStuff");
    Accept.addEventListener(MouseEvent.CLICK, SaveData);
    PlayBTN.addEventListener(MouseEvent.CLICK, LoadData);
    function SaveData(MouseEvent){
               savedstuff.data.username = Sliders.Dino.MovieClip // changes var username in sharedobject
               savedstuff.flush(); // saves data on hard drive
    function LoadData(event: MouseEvent)
               if(savedstuff.size>0){ // checks if there is something saved
               Sliders.Dino.MovieClip = savedstuff.data.username} // change field text to username variable
    // if something was saved before, show it on start
    if(savedstuff.size>0){
    Sliders.Dino.MovieClip = savedstuff.data.username}
    What I have above is only saving the actual image, which is inside a movie clip names Sliders.
    Below is the Class I am using that associates with the slider that changes the hue of "Dino".
    package
              import flash.display.Sprite;
              import fl.motion.AdjustColor;
              import flash.filters.ColorMatrixFilter;
              import fl.events.SliderEvent;
              public class Main extends Sprite
                        private var color:AdjustColor = new AdjustColor();
                        private var filter:ColorMatrixFilter;
                        public function Main():void
                                  /* Required to create initial Matrix */
                                  color.brightness = 0;
                                  color.contrast = 0;
                                  color.hue = 0;
                                  color.saturation = 0;
                                  /* Add Listeners function */
                                  addListeners();
                        private final function addListeners():void
                                  colorPanel.hueSL.addEventListener(SliderEvent.CHANGE, adjustHue);
                        private final function adjustHue(e:SliderEvent):void
                                  color.hue = e.target.value;
                                  update();
                        private final function update():void
                                  filter = new ColorMatrixFilter(color.CalculateFinalFlatArray());
                                  Dino.filters = [filter];
    Overall what I'm asking for is: How do I get it to save the current hue of an image by clicking a button, and then having that previously saved image be loaded upon reloading or clicking a button? To me, it doesn't seem like it should be too hard, but for some reason I can not grasp it.
    Thanks in advance for reading this and for any assistance you have to offer!

    This is the Class that you told me to use:
    package
              import flash.display.Sprite;
              import fl.motion.AdjustColor;
              import flash.filters.ColorMatrixFilter;
              import fl.events.SliderEvent;
              import flash.net.SharedObject;
              public class Main extends Sprite
                        private var color:AdjustColor = new AdjustColor();
                        private var filter:ColorMatrixFilter;
                        private var so:SharedObject;
                        public function Main():void
                                  color.brightness = 0;
                                  color.contrast = 0;
                                  color.saturation = 0;
                                  so = SharedObject.getLocal("myStuff");
                                  if (so.data.hue)
                                            color.hue = so.data.hue;
                                  else
                                            color.hue = 0;
                                  update();
                                  addListeners();
                        private final function addListeners():void
                                  colorPanel.hueSL.addEventListener(SliderEvent.CHANGE, adjustHue);
                        private final function adjustHue(e:SliderEvent):void
                                  color.hue = e.target.value;
                                  so.data.hue = color.hue;
                                  so.flush();
                                  update();
                        private final function update():void
                                  filter = new ColorMatrixFilter(color.CalculateFinalFlatArray());
                                  Dino.filters = [filter];
    And this is the FLA Code:
    import flash.events.KeyboardEvent;
    // open a local shared object called "myStuff", if there is no such object - create a new one
    var savedstuff:SharedObject = SharedObject.getLocal("myStuff");
    Accept.addEventListener(MouseEvent.CLICK, SaveData);
    PlayBTN.addEventListener(MouseEvent.CLICK, LoadData);
    function SaveData(MouseEvent)
              savedstuff.data.username = Sliders.Dino.MovieClip;// changes var username in sharedobject
              savedstuff.flush();
              // saves data on hard drive;
    function LoadData(event: MouseEvent)
              if (savedstuff.size > 0)
              {// checks if there is something saved
                        Sliders.Dino.MovieClip = savedstuff.data.username;
              }// change field text to username variable
    // if something was saved before, show it on start
    if (savedstuff.size > 0)
              Sliders.Dino.MovieClip = savedstuff.data.username;

  • Image upload error. Error resizing image: Error converting image (image resize)

    Developer Details:
    Image upload error. Error resizing image: Error converting image (image resize). The "" folder has no write permissions. (IMG_RESIZE)
    User Error:
    Image upload error. Error resizing image.
    tNG Execution Trace - VIEW
    tNG_update.executeTransaction
    STARTER.Trigger_Default_Starter
    tNG_update.doTransaction
    BEFORE.Trigger_Default_saveData
    tNG_update.saveData
    BEFORE.Trigger_Default_FormValidation
    tNG_update.prepareSQL
    tNG_update.executeTransaction - execute sql
    AFTER.Trigger_ImageUpload
    tNG_update.afterUpdateField - frumorsimg, Fimg1.gif*
    tNG_update.getRecordset
    tNG_update.getFakeRsArr
    tNG_update.getLocalRecordset
    tNG_update.getFakeRecordset
    does anybody know why this happens?
    My folders are 777. The image is being uploaded.
    If I turn off the resizing the page loads fine.
    The error appears when having the resizing or when displaying a thumbnail.
    Please help!!!!
    Thank you

    I am not a php guy but just trying to help out..
    1. check what u have configured in the control panel of ADDT for image resize.
    2. i have heard something called GD is used. or image magick.
    3. in asp i use image magic.
    the image resize will use some temporary directory..
    ur webserver will run as some account so ..
    it should have write permission on this temporary directory.
    and the library u specified it to use for resizing should also physically exist.
    and ofcourse the anonymous webuser account should be able to create process to resize this image.

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Can you show at a glance which event images are in albums?

    Say I had an event containing multiple similar but different images, is there a way to show in the grid view for example which images have already been used in one or more albums?
    Would be handy to be able to select a 'show list of albums containing this image'dialogue box. I guess you could hide images you've used but that wouldn't work automatically, nor would any other tagging/rating.
    Another approach would be to make albums containing everything in a given event, then move the images out of that album once used, just seems fiddly to me.
    AC

    AC
    Would be handy to be able to select a 'show list of albums containing this image'dialogue box.
    Yes it would and many people have suggested tit. Add your voice to the chorus at iPhoto Menu -> Provide Apple Feedback.
    A workaround - and it's no better - is to go to an album and select al, then give all those pics a keyword. Then in grid view you can see which pics have the keyword. (View -> Keywords)
    Regards
    TD

  • Error while attaching a image in forms10g envion..

    hi
    i am getting this error while attaching a image in forms 10g enviornment.
    ERROR>WUC-24 [URLDownload.pullFile()] Error reading URL http :// 10.80.50.222:7778/forms90/webutil/jacob.dll
    regards
    Geo.

    did you install jacob ? with the correct version number described in the installation-guides.
    jacob is not an oracle tool, which normally is only useful for COM-commands against windows.
    What did you do with the image?

  • System Image Restore in Window 8.1

    I have not been able to find a data migration application that works at cloning a Windows 8.1 hard drive to a new SSD.  With that in mind I want to go about moving the contents, data and operating system from my working C: to a new SSD.  I want
    to go about it as if I have backed up my system, my C: drive has failed so I need to install a new drive and restore my data and operating system to the new drive.  I can't seem to find any simple (this should be simple) straight forward way to do this
    nor can I find any form of written instruction on how to go about this. 
    I would love to have someone articulate this.  As it stands I have a fully operational intact C drive.  I have completed a disk image to a second separate hard drive.  I now want to restore that content to a third (SSD ) drive.
    Where do I begin? 

    There is a system backup tool called System Image Backup, follow these steps to conduct this:
    Swipe in from the right edge of the screen, and then tap Search.
    (If you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search.)
    Enter File History in the search box, tap or click File History, and then click System Image Backup at the left part.
    See the screenshot as below, you can backup it on local machine or a DVD or a network share folder:
    Besides, I need to point out that this backup method will generate a vhd file, if you want to restore the system you need an DVD installation midia.
    You cannot just restore a vhd file directly to the hard drive.
    regards
    v-yamliu

  • Adobe Photoshop CS2 opening an image in middle of CS opening screen?

    Can anyone please help me with a way of opening images in CS2 where after opening they will appear in the middle
    of the CS screen rather then in the top left corner?
    I can drag and maximize so they appear in the middle, but on reopening another image they default to the top left again, I would like them to always
    open in the middle?
    Thanks

    Still having problems?  I was struggling to find any documentation for CS2 online, but realised that my bookshelf goes back to Photoshop 6, and I have Martin Evening's Photoshop for Photographers CS2.  Unfortunately, I could see nothing in any of the Preferences tabs that would help.
    At this stage I don't really know what you have tried?  You should try to reset your workspace, and if that does nothing, reset your preferences.  The usual way to do that is to hold down Shift Alt Ctrl while opening Photoshop, but I don't know for sure that worked with CS2.
    Bernie Ecclestone would only need a tiny exec jet, unless he wanted to take his wife along. ;-)
    CC is Creative Cloud, and Tabs are those things you see along the top of the screen in your web browser when you have more than one page open.
    Tauranga is on the North Island, but is very nice and has great beaches (if they have got the oil off)  I live in rural Marlborough right in the middle of the prime grape growing area.  Try Google with Rapaura.  I'm a few hundred metres south of the school.

  • Image Processor Tab Missing in New Adobe Bridge CC 2014

    In the new Bridge CC you used to have a TAB under tools called Photoshop which you could run the script Image Processor for easily processing jpegs. What has happened to this and is their maybe a new way of processing jpegs to lo-res that I dont know about from tiff or jpeg or does my bridge have a problem?
    I have attached a image grab from my bridge that shows that the tab is not there. I know that you can access image processor directly from Photoshop, but they used to always be linked.

    No, it is still in Bridge CC.
    Did you uninstall Photoshop CC after installing Photoshop CC 2014? If so, that may have removed some of the Bridge integration scripts by mistake. Re-installing Photoshop CC 2014 should replace the scripts.
    and it should give the image processor tab back

  • Problem with Adobe BRIDGE getting Photoshop/Image Processor menu

    When I open my drop-down or fly-out menu under TOOLS in Bridge (CS3 version), the entire portion of the menu which is supposed to appear next underneath the Cache line option is missing (i.e., Photoshop, Illustrator, InDesign, Start Meeting..., Photoshop services).
    What gives?
    I'm trying to get to Image Processor under the Photoshop menu option (which is supposed to appear in the Tools drop-down menu).
    Please tell me what's wrong. Thanks in advance.

    Thanks, but there IS no Photoshop subheading in my Tools menu.
    That exactly describes the problem I'm having!

  • In Photoshop Express, cannot sort images in album by filename in thumbnail view (for slideshow)l.

    In Photoshop Express, I want images to appear sorted by filename.  In the "view as a table" it sorts fine.  When I revert to the thumbnail view, the arrangement is random.  The dropdown "show" list does not offer an option for showing by filename.  If I select the"custom" option, it means I would need to sort 300 images by filename MANUALLY (!!!), a job that a computer does in milliseconds.  Anyone with a solution?  Thanks.

    fwiw, with my images in the 'Folder Location' view the photos are in order by their Windows filename. That is the same order as the hardcopy album the photos came from. So I then created a PSE Album. I selected all my photos and moved them into that album. The order of the pictures was retained in the Album. That worked out great. I wanted my PSE images to be in the same order. I thought I would do it with tags. But creating an album seems to work just fine.

  • Relative path for images in RTF templates

    Hi everybody!
    When I insert an image in a RTF template, I put its path into the web dialog, in order to see correctly the picture when I open the report from the xmlp server, in this way: url:{"http://servername/analytics/res/Images/image.bmp"}
    How can I make this path relative, in order to see the images even if the server name changes?
    Thanks so!
    Francesco

    Hi Tim,
    I am using BIP 10.1.3.3.2. I am able to access system variable CURRENT_SERVER URL.
    Steps:
    <?param@begin:CURRENT_SERVER_URL?>
    <xsl:value-of select="$ CURRENT_SERVER_URL"/>
    CURRENT_SERVER_URL is getting printed in BI Publisher. Value displayed is http://xx4697.xxx.co.in:9704/xmlpserver.
    Now we are importing xsl into RTF template. File aaa.xsl is stored at [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app]
    We have hardcoded the path for XSL in RTF. The path is <?import: http://xx4697.xxx.co.in:9704/aaa.xsl?>
    As we want to set dynamic path we changed hardcoded xsl path to <?import: {$CURRENT_SERVER_URL}/../aaa.xsl?> but it is not working. Sometimes BIP is taking local path of MyDocuments folder and sometimes Desktop path. If I put that XSL file in MyDocuments folder or Desktop, it is working fine. But ideally it should refer [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app] path...
    Thanks,
    Amit D

  • Images for tabs are not getting displayed in the page

    Hi,
    I have given images for tabs on a page. when iam applying images from the local disk, it is showing the images in edit mode. But when I view the page, it is not showing any images.
    Where should i copy the images I use in my pages. I ahev copied all the images in the images directory of portal30 in server.
    Please help.
    Murthy

    Hi,
    Please check the httpd.conf file in your server for /images alias. The /images alias will point to a directory. Copy your
    image files in that directory.
    Thanks,
    Sharmila

  • Images not getting displayed in the WebView

    Hi every1,i am facing a problem in displaying images in the WebView. when a particular page or HTML is loaded in a WebView ,images are not coming and i am not able to go to other pages on clicking another link in that page. can ny1 help me?

    @ is a default value as per ALV internal process. This is used in icons .
    I think this is causing the confusion.
    Check in the fieldcat if there is any adjsutment to be made to handle this.
    Br,
    Vijay

  • Image Browser downloads to wrong folder

    I couldn't find a better category for this question than iPhoto. Sorry if there is one.
    I just got a Canon powershot A630 camera. it's great. I was using iPhoto to download images and that was fine. But I thought the Image Browser software that came with the camera would offer more functionality. And i guess it does but I'm having a lot of difficulties with it.
    I called Canon and spoke with tech support but they just tell me it works for them so it must be my problem. They are using mac 10.4 and I have 10.3.9 so that might be part of it. The Image Browser version is 5.7.
    Here's what happens:
    I have specified under "Preferences" in the "Camera Window" (that comes up when I connect the camera to the computer) for the images to be downloaded to a folder I created called "Powershot A630" which resides in the Pictures folder. The default location for download is that same Pictures folder. And that's where the images go, NOT to the folder I specified.
    I've tried also setting that in the EOS window (which can only be started when the camera is NOT connected to the computer). Still doesn't help.
    The Canon guy ran me through a scenario where I "select" pictures for downloading. In this scenario I get a chance to specify the destination, and in fact, it shows the destination I chose in preferences. And it does download to the correct place. But then, where the Image Browser main window lists "favorite" folders, my destination folder is now listed twice. Not desireable I think.
    At this point, I think I'll just go back to iPhoto, but if anyone has a solution, or other reasons why I should use Image Browser I'd love to hear.
    One more thing. The second Canon guy I talked with took me into "Image capture" utility and had me set the destination folder there. Don't see where that has any bearing on the activity at hand, though.
    Thanks a lot,
    Bruce
    powermac g5   Mac OS X (10.3.9)  
    powermac g5   Mac OS X (10.3.9)  

    Smtr,
    See my responses (marked "B-") interleaved with your great note...
    Bruce,
    I love my Canon Powershot A620. The 630 looks
    awesome. My Image Browser is version 5.5, and I don't
    know what changed with the next versions.
    B- Yeah, the a630 is really nice. I previously had an A40 and this is a major step up.
    Anyway, the second Canon guy sounds a bit more
    knowlegdeable about Macs. The preferences in Image
    Capture are where you set which application (or none)
    opens automatically when the Mac detects a camera or
    card. So if setting it in Image Capture doesn't work,
    then I'm not sure what will. I'm afraid I can't
    answer your core question here about how to download
    to your preferred folder.
    B- Thanks for explaining that. It's very clear. I did not understand that from my conversation with the Canon rep.
    As for your choice of which app to use, consider
    this: Image Browser is just that - an application for
    browsing your hard drive and displaying the image
    files in various ways. iPhoto is NOT an image
    browser. It is a photo organizer with lightweight
    editing capabilities and limited version control.
    B- That's good to know, too. I was assuming that Imagebrowser was a substitute for iPhoto and I was hoping for increased funcionality. And it does have lots of stuff in it, which was more confusing than anything else.
    iPhoto is a database application, so when you use it
    you should NOT manipulate items in its library folder
    structure from within the Finder.
    B- yeah, I had discovered that
    With an image
    browser you always manipulate the files yourself from
    Finder. You alone are responsible for the
    organization of your images. With a database you
    manipulate your files from inside the application,
    and let it take care of the file management
    automatically. The two apps are incompatible. If you
    import your photos to iPhoto you should not access
    them using Image Browser, because you could damage
    the library. I know you weren't suggesting combining
    the two, I am just trying to highlight the
    differences between them.
    So ask yourself if you like iPhoto's capabilities. If
    you were happy with it before, then there's really no
    need to switch to Image Browser. It's like apples and
    ... cows (oranges are too similar) and the choice is
    up to you.
    B- the one thing I like so far about imagebrowser is the easy way to view the image full screen. Have not figured out how to do that in iPhoto.
    BUT, there is a task inside my Image Browser that I
    absolutely LOVE because it does something I can't do
    with iMovie. Its called "MovieEdit Task" in
    Applications>Image Browser>DVCUtility. It's a great
    little thing that lets you take separate video clips
    and combine them into one movie. It's much simpler
    than iMovie, and optimized to work with your Canon's
    video clips. (Whereas iMovie prefers miniDV tape.) It
    will allow you to rotate a video clip 90 degrees, so
    if you turned the camera on its side to record a
    movie clip you can rotate it to portrait view. I have
    done this and used the clip in iMovie, and it was
    perfect. Without it I would have needed an iMovie
    plug-in or had to buy QuickTime Pro.
    B- I'll have to look into that. I also have a digital camcorder and have used iMovie. And I'll definitely look into the rotation. My novice friend used my camcorder and shot a bunch of shots of our band with the camcorder rotated 90 degrees.
    So, I sometimes use Image Browser due to the way it
    handles video clips. Here, it is superior to iPhoto.
    But for every day use and for the storage,
    organization, and manipulation of my photos, I use
    iPhoto (in conjunction with PhotoShop Elements for
    real editing).
    Just my 4¢.
    B- Thanks for the great letter!
    Bruce
    powermac g5   Mac OS X (10.3.9)  

Maybe you are looking for