Dynamic images from disk in AIR on Linux

I have a relatively simple AIR application that pulls image
paths from a database and then attempts to display that image by
setting the src="" attribute of an <mx:Image /> tag. On my
Windows development machine this all works swimmingly, however,
when transferring the application to Linux, the images only display
as the "broken image" icon, as though they can't be read from disk.
I've definitely verified that the images are where they're
supposed to be, and that the files are not corrupted. I've used
.nativePath to avoid problems with the file system differences. To
wit, here's the relevant code:
private var resourceRootPath:String =
File.userDirectory.nativePath;
[Bindable] private var imgPath = resourceRootPath +
File.separator + Object.graphic // where Object.graphic is the file
name pulled from a DB, as a parameter of an object the app uses
repeatedly. It exists as a string that represents the file name,
such as "graphic.jpg"
<mx:Image id="currentSlideDisplay" source="{imgPath}"
/>
Does anyone have any idea what I might be doing wrong?
EDIT: I forgot to mention, this is RedHat Fedora 6 I'm
working with.

I'd be suspicious of using nativePath since Image is
expecting a URL. Should be easy to check anyway.

Similar Messages

  • How to transfer images from my iPad air  to my mac?

    How to transfer images from my iPad air  to my mac?
    If I use iphoto software, I can't see the ipad air on the browser...

    You can directly transfer photos and videos via WiFi between the iDevices, PCs, and Macs with an App like Photo Transfer.
    See: https://itunes.apple.com/us/app/photo-transfer-app-easily/id365152940?mt=8
    Or you can upload the photos and videos to the Dropbox service using the Dropbox App on the iDevice, PC, or Mac and download them to the another device using the Dropbox App on that device. By the way, once the videos are on Dropbox you can share them with others.
    See: https://itunes.apple.com/us/app/dropbox/id327630330?mt=8

  • What is the FASTEST way to present an image from disk?

    I am currently using the standard read *jpeg file to display an image from disk to a picture control. My question is what is the most efficient method of getting an image ot the front panel, whether it is with this control, IMAQ, etc. At the end of the day, timing is crucial, and I would like to sync a trigger with the onset of an image.
    Thanks in advance.

    > I am currently using the standard read *jpeg file to display an image
    > from disk to a picture control. My question is what is the most
    > efficient method of getting an image ot the front panel, whether it is
    > with this control, IMAQ, etc. At the end of the day, timing is
    > crucial, and I would like to sync a trigger with the onset of an
    > image.
    >
    FASTEST will be imaq, and both the intensity graph and the picture
    control will be a bit slower since they are both better suited to other
    tasks.
    First, if you only have a small number of jpegs, you might preload them.
    You could even go so far as to draw them to a hidden picture control
    and simply show it when your event occurs.
    The differences here are roughly that IMAQ will already have the image
    data
    placed into their image and will simply need to draw it, similar to
    showing a LV control. The picture control data is a flattened version
    of the image that needs to be interpreted somewhat and placed into a
    system image, then drawn. The intensity graph assumes that is is false
    coloring an intensity map and is zooming or stretching the data as well.
    Therefore it also constructs a bitmap from the data and takes a bit
    longer to do it as it decimates and stretches the data as necessary.
    Greg McKaskle

  • How to insert a dynamic image from a database

    I've recently started using Dreamweaver CC to set up a Dynamic Website (PHP pages with a mySQL database).  With perseverance and by downloading the new depreciated Server Behaviors and Bindings Panels I've been more or less successful at accomplishing my tasks.  I'm still struggling with getting a image to display from mySQL server data base.  In the Pre CC revisions this was easy and well documented.  I've downloaded the DMXZone HTML5 Data Bindings extension.  I can almost get accomplish my dynamic image task, but the DMXZone HTML5 Data Bindings extension says I must now get the the "unfinished but working on" DMX Zone Database Extension in addition to the HTML5 Data Bindings Extension to select my data source from the database.
    I'm thinking about dumping Dreamweaver CC altogether and just installing CS6 until the path gets better paved.  Any other ideas?  Sample code?  Work around?  Thanks in advance

    KevinatCirris wrote:
    I've recently started using Dreamweaver CC to set up a Dynamic Website (PHP pages with a mySQL database).  With perseverance and by downloading the new depreciated Server Behaviors and Bindings Panels I've been more or less successful at accomplishing my tasks.  I'm still struggling with getting a image to display from mySQL server data base.  In the Pre CC revisions this was easy and well documented.  I've downloaded the DMXZone HTML5 Data Bindings extension.  I can almost get accomplish my dynamic image task, but the DMXZone HTML5 Data Bindings extension says I must now get the the "unfinished but working on" DMX Zone Database Extension in addition to the HTML5 Data Bindings Extension to select my data source from the database.
    I'm thinking about dumping Dreamweaver CC altogether and just installing CS6 until the path gets better paved.  Any other ideas?  Sample code?  Work around?  Thanks in advance
    Really you would do it like any other piece of information in your database.
    Store the actual images in a folder on your server and the image file name in the database - myImage.jpg
    Then echo it to the page following the convention of your other data which is being echoed onto the page:
    <img scr="images/<?php echo $row_rsRecordSetName['images']; ?> alt="" >
    ['images'] above being the name of the database field in which you stored the image name and $row_rsRecordSetName being the variable created by the recordset (yours will be different)

  • Disk Utility Image from Disk (whole disk) Error -39...

    Hi - I've been trying to make a compressed/encrypted image of my primary hard drive without success. Using Disk Utility so I can have an image I can mount to retrieve files off an external HD when necessary. Booting from external firewire drive (partition 1), and attempting to clone/backup image from Primary internal boot drive to external firewire drive (partition 2). Have also tried the following: setting the save-to location to the second internal hard drive; doing it uncompressed / unencrypted. I have run Repair, Permissions, Disk Warrior and no issues with the file system/drive I'm trying to image.
    The only references I've seen to error 39 is End of File (EoF) corruption or error. Since the drive/files check-out, Disk Utility must be creating an error somehow. It always happens when the backup is totally complete, and appears it's finishing up the file.
    Any thoughts? Thank you!!

    I'm having the same problem on a Power Mac G4 with OS 10.4.6 using disk utility.
    I've tried this on a 400gig seagate in a raid array
    on a 120 gig seagate
    from the raid array to the 120 gig
    from a 120 gig to a second 120 gig
    from the disk and it crashed and sent an error message to apple
    I have plenty of space
    I've seen this on the discussion forums so I know others are having this problem.
    I'm writing to you pro's in hopes that you may have some suggestions.
    I'm just trying to create backup images of my primary hard drive.
    I've been in the Mac family since the early 80's... I've found other mac users to be very helpful:)
    An ideas??

  • New Image from Disk

    is there a way to select a disk and have automator create a disk image from it....kinda like disk utility does without having to use disk utility.

    To follow up on this post, I know at least part of the answer. The difference between the two becomes clearer if you read the documentation (man pages) for hdiutil and asr. Image 1 will be created in file mode, whereas image 2 will be in block mode, ie bypassing the file system. Image 1 will consist of a series of files, whereas image 2 will contain a series of blocks, mirroring the original layout of the hard disk.
    Technically the latter should be faster to restore (in block mode), although Apple recommend the first procedure (see man page for hdiutil). I haven't seen any evidence that images created in block mode can be mounted or restored, although you might be able to burn such images to a optical disks if applicable.
    As I've pointed out in another thread (http://discussions.apple.com/thread.jspa?threadID=1508199&tstart=0) I believe that this functionality should not be offered in disk utility, and I consider it a serious bug.

  • Load dynamically image from path

    Hi,
    I want load image from path with CR4E. I have a report with a field that contain the path of image and a empty PictureObject.
    I wanna put the image from the path in the picture image.
    That work when i have a section that is unique :
    I can obtain the path with this code
                        IField field = clientDoc.getDataDefinition().getResultFields()
                                  .findField(fieldObject.getDataSourceName(), FieldDisplayNameType.formulaName, java.util.Locale.getDefault());
                        RowsetMetaData rowSetMetaData = new RowsetMetaData();
                        rowSetMetaData.setDataFields(clientDoc.getDataDefinition().getResultFields());
                        RowsetCursor resultCursor = clientDoc.getRowsetController().createCursor(null, rowSetMetaData);
                        Value values = clientDoc.getRowsetController().browseFieldValues(field, -1);
    And i can view the image with this code
                        clientDoc.getReportDefController().getReportObjectController().remove(picture);
                        PictureObject boPictureObject = clientDoc.getReportDefController().getReportObjectController().importPicture(path, theSection, picture.getLeft(), picture.getTop());
                        boPictureObject.setWidth(picture.getWidth());          
                        boPictureObject.setWidth(picture.getHeight());
    But when the section is not unique, it is always the same image in all section.
    How then I to make? A resolution has t-il there ? (with crystal report 8 there was ISectionEvent for this)
    Thanks for your help!
    Edited by: hermannpencole on Mar 24, 2011 5:35 PM

    Hi fUjI_FX,
    <br/>
    This is a solution for report with a field that contain the path of image and a empty PictureObject. the filed for the path is under picture Object, then image hide this field. (in this example the field for the path get the path from database with field PATH or MARKET_PATH you can change it).
    - at first open the doc
    <pre>
          * Load.
          * @throws ReportSDKException the report sdk exception
          * @throws IOException Signals that an I/O exception has occurred.
         private void load() throws ReportSDKException, IOException {
              clientDoc = new ReportClientDocument();
              clientDoc.open(new File(report.getPath()).getAbsolutePath(), OpenReportOptions._openAsReadOnly);
              //..here change datasource if necessary
              clientDoc.getDatabaseController().logon(username, password);
    </pre>
    - After  assign parameters if necessary with with CRJavaHelper.addDiscreteParameterValue. If you want communicate with the user you must develop your own Dialog Box (i have it if you want).
    <br/><br/>
    - And finally search on the reportDoc if you have Field with image (field named PATH and MARKED PATH in this sample) and replace it with picture image : sample code
    <pre>
          * Process report.
          * @param reportClientDocument the report client document
          * @throws IOException Signals that an I/O exception has occurred.
         private void processReport(IReportClientDocument reportClientDocument) throws IOException {
              try {
                   if (reportClientDocument == null) {
                        return;
                   // Get the area collection of the report
                   Areas theAreaCollection =  reportClientDocument.getReportDefController().getReportDefinition().getAreas();
                   if (theAreaCollection == null) {
                        return;
                   // Iterates through the areas
                   int lNumberOfAreas = theAreaCollection.size();
                   for (int lArea = 0; lArea < lNumberOfAreas; lArea++) {
                        IArea anArea = theAreaCollection.getArea(lArea);
                        if (anArea != null) {
                             Sections theSectionCollection = anArea.getSections();
                             if (theSectionCollection != null) {
                                  // Iterates through the sections
                                  long lNumberOfSections = theSectionCollection.size();
                                  for (int lSection = 0; lSection < lNumberOfSections; lSection++) {
                                       ISection aSection = theSectionCollection.getSection(lSection);
                                       processSection(aSection);
              } catch (ReportSDKException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
          * Process section.
          * @param theSection the the section
          * @throws ReportSDKException the report sdk exception
          * @throws IOException Signals that an I/O exception has occurred.
         private void processSection(ISection theSection) throws ReportSDKException, IOException {
              if (theSection == null) {
                   return;
              //System.out.printf("----> ProcessSection2 %s\n", theSection.getName());
              ReportObjects theReportObjectCollection = theSection.getReportObjects();
              if (theReportObjectCollection == null) {
                   return;
              // Iterate through the section items
              int lNumberOfReportObjects = theReportObjectCollection.size();
              Values values = null;
              PictureObject picture = null;
              String formulaName = null;
              for (int lReportObject = 0; lReportObject < lNumberOfReportObjects; lReportObject++) {
                   IReportObject aReportObject = theReportObjectCollection.getReportObject(lReportObject);
                   if (isNotifiable(aReportObject)) {
                        FieldObject fieldObject = (FieldObject) aReportObject;
                        IField field = clientDoc.getDataDefinition().getResultFields()
                                  .findField(fieldObject.getDataSourceName(), FieldDisplayNameType.formulaName, java.util.Locale.getDefault());
                        RowsetMetaData rowSetMetaData = new RowsetMetaData();
                        rowSetMetaData.setDataFields(clientDoc.getDataDefinition().getResultFields());
                        RowsetCursor resultCursor = clientDoc.getRowsetController().createCursor(null, rowSetMetaData);
                        formulaName = field.getFormulaForm();
                        values = clientDoc.getRowsetController().browseFieldValues(field, -1);
                   if (aReportObject.getKind() != null && aReportObject.getKind().equals(ReportObjectKind.picture)) {
                        picture = (PictureObject) aReportObject;
              if (picture != null && formulaName != null) {
                   //Create blank image
                   int resolution = getResolution();
                   int width = (picture.getWidth() * resolution) / 1440;
                   int height = (picture.getHeight() * resolution) / 1440;     
                   String locationTemp = System.getProperty("java.io.tmpdir") + "imagegen.png";
                   File tempFile = new File(locationTemp);
                   tempFile.deleteOnExit();     
                   ImageUtils.createBlankImage(tempFile, width, height, resolution);
                   clientDoc.getReportDefController().getReportObjectController().remove(picture);
                   PictureObject boPictureObject = clientDoc.getReportDefController().getReportObjectController().importPicture(locationTemp, theSection, picture.getLeft(), picture.getTop());
                   boPictureObject.setWidth(picture.getWidth());               
                   boPictureObject.setWidth(picture.getHeight());     
                   if (values != null && !values.isEmpty()) {
                        //Create image in temp dir
                        for (int i=0; i < values.size(); i++) {                    
                             String locationString = (String) values.get(i).computeText().replaceAll("[\\\"\\']", "");                    
                             File fileToResize = new File(locationString);     
                             if (locationString.isEmpty()) {
                                  //Nothing blank image is already generated
                             } else if (!fileToResize.exists()) {
                                  locationTemp = System.getProperty("java.io.tmpdir") + "imagegen" + locationString.replaceAll("[:/\\\\\\. ]", "_") + ".png";
                                  tempFile = new File(locationTemp);
                                  tempFile.deleteOnExit();     
                                  ImageUtils.createImageNotFound(tempFile, width, height, resolution);
                             } else {
                                  locationTemp = System.getProperty("java.io.tmpdir") + "imagegen" + locationString.replaceAll("[:/\\\\\\. ]", "_") + ".png";
                                  tempFile = new File(locationTemp);
                                  tempFile.deleteOnExit();     
                                  ImageUtils.createResizedCopy(fileToResize, tempFile, width, height, resolution);
                        //Create dynamic picture
                        PictureObject boPictureObject2 = (PictureObject)boPictureObject.clone(true);
                        ConditionFormula c = new ConditionFormula();
                        c.setText( "\"" + System.getProperty("java.io.tmpdir") +
                                  "imagegen\" & replace(replace(replace(replace(replace(replace(replace(" + formulaName + ",\"\\\",\"_\"),\":\",\"_\"),\"\"\"\",\"\"),\" \",\"_\"),\"'\",\"\"),\"/\",\"_\"),\".\",\"_\") & \".png\"");
                        boPictureObject2.setGraphicLocationFormula(c);
                        boPictureObject2.setLeft(picture.getLeft());
                        boPictureObject2.setTop(picture.getTop());
                        boPictureObject2.setWidth(picture.getWidth());               
                        boPictureObject2.setHeight(picture.getHeight());     
                        clientDoc.getReportDefController().getReportObjectController().modify(boPictureObject, boPictureObject2);
          * Gets the resolution.
          * @return the resolution
         private int getResolution() {
         double dResolution = MIN_RESOLUTION;
              switch (printQuality) {
                   case PRINT_QUALITY_HIGH:   dResolution = MAX_RESOLUTION; break;
                   case PRINT_QUALITY_MEDIUM: dResolution = MIN_RESOLUTION + ((MAX_RESOLUTION - MIN_RESOLUTION) * .6);     break;
                   case PRINT_QUALITY_NORMAL: dResolution = MIN_RESOLUTION + ((MAX_RESOLUTION - MIN_RESOLUTION) * .3);     break;
                   case PRINT_QUALITY_DRAFT: dResolution = MIN_RESOLUTION;     break;
              return (int)dResolution;
          * Checks if is notifiable.
          * @param theObjectPtr the the object ptr
          * @return true, if is notifiable
          * @throws ReportSDKException the report sdk exception
          * @throws IOException Signals that an I/O exception has occurred.
         private boolean isNotifiable(IReportObject theObjectPtr) throws ReportSDKException, IOException {
              if (theObjectPtr == null) {
                   return false;
              //System.out.printf("----> IsNotifiable %s\n", theObjectPtr.getName());
              ReportObjectKind kind = theObjectPtr.getKind();
              if (kind.equals(ReportObjectKind.field)) {
                   // The report object is a database field, let's see if it is an olefield
                   return (isOLEField((FieldObject) theObjectPtr));
              } else if (kind.equals(ReportObjectKind.subreport)) {
                   // Don't plug imager, but examine the subreport for other image
                   ISubreportObject aSubreport = (ISubreportObject) theObjectPtr;
                   processReport(clientDoc.getSubreportController().getSubreport(aSubreport.getSubreportName()));
                   return false;
              } else {
                   // ignore all other kinds
                   return false;
          * Checks if is oLE field.
          * @param fieldObject the field object
          * @return true, if is oLE field
          * @throws ReportSDKException the report sdk exception
         private boolean isOLEField(final FieldObject fieldObject) throws ReportSDKException {
              IField field = clientDoc.getDataDefinition().getResultFields()
                        .findField(fieldObject.getDataSourceName(), FieldDisplayNameType.formulaName,
                                  java.util.Locale.getDefault());
              if (field == null) {
                   return false;
              //System.out.printf("----> IsOLEField %s\n", field.getName());
              return ((field.getName().equalsIgnoreCase(("PATH"))) || (field.getName().equalsIgnoreCase(("MARKER_PATH"))));
    </pre>
    Edited by: hermannpencole on May 25, 2011 3:50 PM

  • How can I use wget, cron and Automator to periodically pull a dynamic image from a URL to local storage, and then update a Keynote slide with that image, automatically?

    How can I use wget, cron and Automator to periodically pull an image from a URL (which is dynamically updated - like a weather map, say - to local storage, and then update a Keynote slide with that image, automatically?

    Any particular reason for those specific technologies?  wget does not exist on a mac, although you can nstall it I guess.  OS X has curl installed which should do pretty much anything you want to do with wget.  cron is being replaced by launchd, although cron still exists on mountain lion.
    As far as I can tell from automator all the standard 'actions' to access keynote  available to it require keynote to be open and running, but does not provide a function to actually open it.  So I think you will have to write some applescript, as a minimum to open and quit keynote. I notice that the keynote actions are mostly circa 2005 an wonder if they would even work.
    Under utilities in automator 'actions' there is a capability to add applescripts as part of the workflow.
    Also, note that cron is being dprecated by Apple and replaced by launchd.  that said cron is stil on my mountain lion instalation.
    This entry at stackoverflow shows use of cron with curl to get web urls.  http://stackoverflow.com/questions/1683620/getting-started-with-cronjobs-on-a-ma c
    If I have any time I may try and get this to work as it is quite interesting and new to me.  But otherwise, good luck.

  • Image Date error on importing TIFF images from Disk

    I have thousands of high quality (~100 Mb each) images in 20 folders on a 1 Tb hard drive. I have been using Bridge to manage the images, adding some metadata such as keywords and copyright data. I am considering importing all these images into Aperture and using it as the primary image management tool.
    But I am concerned about an apparent bug in the way Aperture handles the "image date and time".
    In Bridge (and GraphicConverter), the "image date" field is correct, directly from my CFV digital back on the camera and inline with the time of day the shot was taken (e.g. sunrise image at 6am). When I import the image into Aperture, the time gets shifted by 14 hours.
    For example, an image in Bridge that correctly shows Date Created as 10/05/2009 7:36am gets distorted to 10/05/2009 9:36pm, exactly 14 hours later than the correct time. It was taken at 7:30 in the morning but, in Aperture, looks like it was taken in the late evening. It does not look like a time zone issue as the image was taken in the same time zone as my Mac Pro is set to.
    I have tried deleting the masters and re-importing them with GMT +2 and GMT -12 in the two time zone adjustment fields. This gets the right time into the Image Date field but then the image has the wrong time zone data in the "Camera Time Zone" and "Picture Time Zone" fields.
    I have tried running MetaData > Update Date and Time (with Master files ON) but it comes back with an error "no master files were adjusted ... because they have a format that does not permit modification".
    I have tried running MetaData > Update Date and Time (with Master files OFF). It appears to work but I assume that the underlying file in the Aperture library still has the incorrect time.
    Have others faced this problem? Is there a solution? Is it a known bug that Apple might fix one day?
    Regards
    Peter

    I am seeing a very similar problem when importing TIFF files back to Aperture.
    This is what I do and what I see:
    1. I import RAW images from my camera into Aperture. They show the correct date and time.
    2. I open an RAW image in Photoshop (CS4) directly from the finder. The image inside Photoshop (file/info) shows the correct date and time.
    3. After editing I save my image as 16bit TIFF and it still shows correct date and time.
    4. I import the new TIFF back into Aperture. The time is shifted back 15 hrs!
    I can then go in and Metadata/Update Date and Time (no masters) and it works well, but it is a pain to do on each image I process.
    In all cases camera and image timezone is set to US Pacific as it should be.
    To me this seems like Aperture is somehow miss-interpreting the timezone when reimporting TIFFs.
    I have not tried importing JPEGs or PSDs back but I will and will report back...

  • Dynamic Image From Network Path

    I am trying to setup dynamic student photos onto a report, we are lucky enough to know the photo filenames as they are the same as our student_id's so I setup in a formula:
    Spot\Image_Bank\QLSPhotographs\Images\" + {Photo_List_By_Course;1.student_id} + ".jpg"
    as the image path I also tried:
    "I:\QLSPhotographs\Images\" + {Photo_List_By_Course;1.student_id} + ".jpg"
    as I have it mapped as a local drive both these options worked fine on my local machine running the website up in Visual Studio 2008 rather than IIS. Upon taking the website to our web server I tried the report using the "
    Spot\Image_Bank..." option (as it wouldn't have the mapped I drive). This did not however work.
    Do I need to adjust the formula?
    What user/security would it run under the folder has read permission for Network Service, All Staff (our group for staff), System, Domain Admins and various others. The website seems to run under Network Service as I had to apply write access to a folder before in the website.

    Is your web application able to retrieve the files from that location, independent of whatever you're doing with Crystal Reports? If not, the Crystal engine won't be able to, either. Make sure that the application is impersonating your domain users properly, assuming those are the credentials you're using to access that shared drive.

  • Creating floppy disk images (from Disk Utility) recognized by Parallels

    Hi there,
    After making the Parallels plunge last week, and installing a couple of my old OS's in it, I unearthed my old MS-DOS 6.22 disks. (remember that, boys and girls?)
    With the help of my brother, I managed to export the contents onto a USB flash drive in the hopes of creating the necessary .fdd files that Parallels uses to create a virtual DOS machine.
    (FYI - I already have DOSBox installed... but now with Parallels, I was looking to install the real deal)
    Normally, renaming a .dmg file (created through Disk Utility) to a .fdd should force Mac OS to associate the image with Parallels, and thus allowing it to be recognized as a valid floppy image.
    Unfortunately, this hasn't been the case for me. Parallels cannot recognize the disk images created as floppy drive images. Even after formatting the volume as both MS-DOS and MS-DOS (FAT 16), nothing seems to work.
    I've already checked the Parallels forums, but couldn't drudge up anything. I was hoping one of the Level 3+'s here had some experience with this.
    Am I missing something in the Disk Utility .dmg creation process of these files, or would I need a separate application to create a valid .img/.ima file to get this to work?
    Thanks!
    Steve

    I am also having this issue. If I figure it out I'll post my solution. If anybody has had success it would be very helpful to know how they made proper images.

  • Can i create a disk image of my Imac 27 triple boot from disk utility: lion 10.8.3, win 7 and snow 10.6.8

    I have created a well working triple boot system on my Imac 27, I7, 16GB, 3.4.Triple boot: Lion 10.8.3, Snow leopard 10.6.8 and windows 7.
    They all work great. I would like to find the simplest way to make a image or a backup of the entire system.
    I am thinking of creating a new image from disk utility image option.This from the main 2 To hitachi disk. The image option at the top should create a global image of the entire triple boot. I am not shure if this is possible.  The differential/incremental option is not necesary. I can deal with that.
    But, In case the disk utility option will not work, which software would aloud diferential/incremental backup for each partition
    A software solution that would babkup all my partitions.
    A single all in one image would be great but is that possible?
    Any suggestion: please d'ont talk about vm solution or other subject like that. I am looking for a backup solution for my tripleboot...
    Thanks
    Luc

    There are a few problems here, first Mountian Lion won't install on a 2006 MacBook, it diesn't meet the minimum specifications. http://support.apple.com/kb/SP654
    Secondly you shouldn't install something purchased under one apple id onto another persons computer.

  • [Forum FAQ] How to display an image from Http response in Reporting Services?

    Question:
    There is a kind of scenario that users want to display an image which is from URL. In Reporting Services, if the URL points to an image file, we can directly display it by typing the URL in embedded image. However, some URLs are just sending Http requests
    to server side, then redirect to another position and the server will return the image. For these kind of URLs, Reporting Services can’t directly render the image from Http response.
    Answer:
    To achieve this goal, we can add custom code into the report. Pass the URL as argument into our custom function so that we can create HttpRequest and get the HttpResponse. Then we can use custom function to return the Bytes() from the HttpResponse and render
    it into an image in report.
    Ps: In Reporting Services, it only support drawing Bytes() array into image, so we need to have our custom function return Bytes array.
    Add the assembly and custom code into the report.
    Public shared Function GetImageFromByte(Byval URL as String) As byte() 
                    Dim photo as System.Drawing.Image 
             Dim Request As System.Net.HttpWebRequest 
           Dim Response As System.Net.HttpWebResponse 
                  Request = System.Net.WebRequest.Create(URL)         
                     Response = CType(Request.GetResponse, System.Net.WebResponse) 
                 If Request.HaveResponse Then  
                      If Response.StatusCode = Net.HttpStatusCode.OK Then                    
                           photo = System.Drawing.Image.FromStream(Response.GetResponseStream) 
                     End If 
                 End If 
                  Dim ms AS System.IO.MemoryStream = new System.IO.MemoryStream() 
                 photo.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg) 
                    Dim imagedata as byte()  
                    imagedata = ms.GetBuffer()  
                    return imagedata
    End Function
    Grant the permission for assemblies. 
    Go to: 
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\RSpreviewPolicy.config 
    C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\rssrvpolicy.config
    Give “FullTrust” for Report_Expressions_Default_Permissions.
    Insert an image into report. 
    Expression:
    =Code.GetImageFromByte("https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSrVwPoAtlcA2A3KaiAJi-XjS4icr1QUnKYr7uzpX3IL3g2GPisAQ")
    The Result looks below:
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    >
    Hi, I'd like to display a dynamic image from the web inside a JLabel or any other swing component it could work in. I've been looking on the Swing tutorials and others forums, all I can have is that a JLabel can load an Icon object, defined by an image URL, but can this URL be like "http://xxxxx/image.jpg" somehow or can it only be a local image URL?>
    I do not know why you start talking about an image on the web then go on to show concerns about whether it will work for a 'local' URL.
    But perhaps this answer will cover the possibilities.
    So long as you can from an URL to the image, and the bytes are available for download (e.g. some web sites wrap a direct call to an image in HTML that embeds the image), the URL based icon constructors will successfully load it.
    It does not matter if that URL points to
    - a web site,
    - a local server ('localhost'),
    - an URL representation of a File on the local file system, or
    - it is inside a Jar file that is on the application's run-time classpath.
    How you go about forming a valid URL to a 'local resources' (or indeed what you regard as local resources) is another matter, depending on the form of the project, and how the resources are stored (see list above).
    Probably the main reason that examples use images at a hard coded URL on the net is that it makes an 'image example' self contained. As soon as we compile and run it, we can see the result. I have posted a few examples like that on these forums.
    Edit 1:
    BTW - Welcome to the Sun forums
    Edited by: AndrewThompson64 on Apr 21, 2009 12:15 PM

  • How to paste an image from the database by creating a new page?

    Hai,
    i'm trying to paste more than 6 images in two pages...
    The condition is that i want to paste only 3 images in a page.
    When the first 3 images were pasted... i want a new page to be automatically created and the next or 4th image will be pasted on the
    next page...
    i have codings for creating a new page and for pasting the image...
    But how shall shall i paste the 4th image in the next page...
    Can any one plzz explain me...

    >
    Hi, I'd like to display a dynamic image from the web inside a JLabel or any other swing component it could work in. I've been looking on the Swing tutorials and others forums, all I can have is that a JLabel can load an Icon object, defined by an image URL, but can this URL be like "http://xxxxx/image.jpg" somehow or can it only be a local image URL?>
    I do not know why you start talking about an image on the web then go on to show concerns about whether it will work for a 'local' URL.
    But perhaps this answer will cover the possibilities.
    So long as you can from an URL to the image, and the bytes are available for download (e.g. some web sites wrap a direct call to an image in HTML that embeds the image), the URL based icon constructors will successfully load it.
    It does not matter if that URL points to
    - a web site,
    - a local server ('localhost'),
    - an URL representation of a File on the local file system, or
    - it is inside a Jar file that is on the application's run-time classpath.
    How you go about forming a valid URL to a 'local resources' (or indeed what you regard as local resources) is another matter, depending on the form of the project, and how the resources are stored (see list above).
    Probably the main reason that examples use images at a hard coded URL on the net is that it makes an 'image example' self contained. As soon as we compile and run it, we can see the result. I have posted a few examples like that on these forums.
    Edit 1:
    BTW - Welcome to the Sun forums
    Edited by: AndrewThompson64 on Apr 21, 2009 12:15 PM

  • Sharing/Caching (Dynamic) Images

    I find that the Flash Player does not cache dynamic images
    (even in the same session), so my question is, how would I share
    images across multiple image components such that I can build an
    asset provider of sorts to assit with caching images and other
    assets?
    I've tried a simplistic approach where in I assign the source
    of one image component to another but then the first image
    component goes blank and the image "transfers" to the second.
    Not sure if BitmapData will help with this either.
    Any help/direction is much appreciated.
    Thanks.
    Shiv.

    URL? Code?
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "kidcobra" <[email protected]> wrote in
    message
    news:g2oqb0$bgq$[email protected]..
    > PHP, dynamic images from mysql dbase....diplay on local
    server, but will
    > only
    > display on web server if in the same level or folder as
    the php page.
    > Locally,
    > I have put the path to the images in the dbase in front
    of the URL of the
    > image, and all works fine.... but with that path in
    there and images not
    > in
    > same folder as page, no web server display. I know I'm
    missing the
    > obvious, but
    > need help if anyone has the simple answer . Thanks
    >

Maybe you are looking for

  • Reporting services (ASPNET) vs (SQLSERVER)

    Hi which is more fast; reporting from aspnet or sqlserver.. I only refer to performance..  because i have use both,,,

  • Kernel java.util.ConcurrentModificationException

    Hi, I have got a few of these exceptions on one of my clustered weblogic server 9.2: Id = BEA-000802 UserId = <WLS Kernel> TransactionId = ThrowableInfo = java.util.ConcurrentModificationException      at java.util.LinkedList$ListItr.checkForComodifi

  • My iPad won't turn on

    I have an iPad tht won't turn on even though it has been charged. Is it possible that there's a shortage in my charger cord or is it the iPad itself?

  • Game won't sync with nano 4th gen

    I bought iQuiz to my nano 4th gen and it clearly says that it is compatible with it, but it just won't sync. It won't even show up in the games tab. I've updated to the newest iTunes and I've updated the software on the nano but it still won't work.

  • BIP event trigger throwing session expired error!

    Hi, I am trying to have some event triggers in my data model, but as soon as i click on the UpdateDefaultPackage button the box throws session expired error. I am using Firefox for development, and when i do the same in IE the function list doesn't g