Storing Images on OAS 4 Linux and ASP (NT)

Does anyone know how to store images on OAS 3.0 for Linux and ASP (4 NT)? I need some help regarding this.

I am seeing the same symptom on Win2K. Trying to install
to "D:\java\j2sdk1.4.2" I get fatal error 1317. I can't
seem to find a workaround.
~Randy
Windows:
I have to use windows at work.
I had a problem (s) installing j2sdk 1.4.2 on Windows
NT. I was trying to install it into
"d:\programs\j2sdk1.4.2" instead of "c:\j2sdk1.4.2".
Installer stopped with the following error.
"Error 1303: blah blah"
So, I created the "j2sdk1.4.2" directory myself and
started the installation again, but this time I got
the following error, even though the directory is
already created.
"Error 1317: An error occured while creating the
directory d:\programs\j2sdk1.4.2"

Similar Messages

  • Linux and ASP?

    A course I'm doing requires me to do some ASP. I have done VB and ASP scripting in the past on Windows machines and it just doesent feel right, I wanna use my own computer ... is there a way I can get Apache to render ASP pages?
    I have looked at Apache::ASP but it does not work for me ... any other suggestions would be great
    Thanks.

    Did you compare query plans for "slow Monday" and "fast Tuesday" runs? Are they different? Gathering statistics may change the plans, but I wouldn't make stats prime suspect right away. This Saturday job gathered the stats and they persist until the next job run. Then on Monday it all goes slow and on Tuesday it's back to normal - but the stats are still those same collected on Saturday, so probably they are not responsible for the issue.

  • OAS and Linux and Apache

    I have successfully installed OAS 4.0.8.1 on Linux RedHat 6.1. The default (oracle) http listner runs fine, after setting it to port 81. I did this because the default http server for Linux (Apache 1.3.9-4) is on 80. I would like to use Apache as my http listner, and have found some documentation on how to do this at http://www.olab.com/doc/books/admin/thirdp.htm, but am a little confused with the instructions. It states that Apache must be compiled with mod_so support. I have verified that this is so with the "httpd -l" command. Before that, it mentions that...
    "libapadp.so must be linked into the Apache HTTP Server." Can anyone tell me how this is done, and with which version of Apache should be used? 1.3.6 seems to be a popular one and is mentioned in the Oracle Application Server Installation Guide for Release 4.0.8.1 in Certified Software.
    I have tried to move libapadp.so and ndwfapd.so into the /modules subdirectory my Apache install (once again 1.3.9-4) and adding "LoadModule ows_module ndwfapd.so" in my httpd.conf file, but when the server tries to start, I get the error message...
    "Cannot load /etc/httpd/modules/ndwfapd.so into server:libapadp.so: cannot open shared object file:No such file or directory"
    Has anyone run into this problem? I imagine many people have done this. As I am new to Linux and OAS and Apache, maybe I'm missing something fundamental that I haven't learned yet, but hey, isn't this what learning is all about?
    If anyone can help me with this hurdle, I would greatly appreciate it.
    Thanks in advance,
    Kirby

    Hi Guys,
    I am pulling my hair out with this one too.
    I tried to link the library "libapadp.so" to
    apache using the Makefile in the source directory by adding the path and libapadp.so to the EXTRALIBS variable. It works in the
    sense that it tried to link the lib but fails because there are a bunch of unresolved dependencies. As somebody else stated, Oracles documentation sucks. I ask for support and got sent here, I guess that they don't know how to make it work either.
    Will let you know if I have any success.
    Brett.
    [email protected]
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jason Gerry ([email protected]):
    I've been working on this problem as well. I haven't got it to work YET, but I'm trying.
    Your error message is relating to Apache not being able to find the shared module. You can fix this by telling it explicitly where to find it since it doesn't seem to be in the PATH.
    LoadModule ows_module /opt/app/oracle/product/8.0.5/ows/4.0/lib/ndwfapd.so
    Your directory structure may be different. In any case, this SHOULD work, my Apache listeners start up, but they don't actually respond to requests and they freeze the machine. Oh well.
    Still working on it!
    jason
    <HR></BLOCKQUOTE>
    null

  • I can't copy and paste images, both in Windows and Linux mozilla

    I can't copy and paste images when using Mozilla for Linux and Windows

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Unable to Open Images in Bridge CS3 and Continuing Icon issues!

    Re: Icon issues in Bridge CS3 and also with Photo Downloader that have never been there before.     
    So, these are the issues.   Just one of the folders that previously would show thumbnails now only shows DNG icons, and none will open in Photoshop to let me work on previous image.    Issue #2  - can't download images with Photo Downloaders - both my wife's Canon G9 only shows CR2 icons, and my Nikon D300 only shows NEF icons - neither of these issues had appeared before or been an issue.  Third issue.  None of my Bridge folders - even those with regular thumbnail immages- will open now - get a message that says words to the effect of Photoshop doesn't recognize this type of file.  Computer is a Mac, with OS 10.5.8
    I recently tried to make more room on HD, so must have taken some critical files/commands out by accident. 
    Thanks for your time and previous  suggestions - still not working.  I'm sure that in trying to correct things have made things even worse- as may be noticed  by the two snapshots I've attached.  The first is one from a library from my user section.  The second library image is from my hard drive.  Hopefully you and others aren't laughing or crying too much over what you see - redundantcy, etc!  All of my energies have focused on taking photos, obviously none to proper setup/use of organizing things on my Mac.  But after the laughing has stopped, any help will be tremendously appreciated - am most anxious to getting back to working with and saving images.
    "user image"
    Hard Drive image:
    Thanks in advance

    First of all, if you don't know much about how applications work inside of the OS, its wise to not look in the application folder(s). Deleting anything here can make your apps go haywire. If this happened, then you are best to 1)unregister photoshop, 2) uninstall your entire suite. 3) reinstall the suite and finally 4) reregister photoshop.
    All images/textures/photo's including dng, cr2 and nef files need to be stored in your pictures folder and no where else, unless you're an intermediate user on your OS. In your pictures folder you can create folders for organizing the pictures whether by location, season's, time, or file format.
    Then when you back up you can just drag a copy of the files to another drive including cd's or dvd's.
    This will make sure you don't accidently delete important app files.
    All this said, my OS of choice is Windows, so if anything does not sound right, thats why.
    Hopefully this helps...

  • Jasper report on HTML when one image loaded from database and for the other

    How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
    My code
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
              exporter = new JRHtmlExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
              exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
              exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
         exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
         exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
         exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
         exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
              exporter.exportReport();
              byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();
    Can any one help pls
    Message was edited by:
    ameet.au

    hey sorry for posting it in this forum.
    but do u have sample code for making it work.. since i am able to do it on PDF format(image from Database and another stored in the webserver) using
    byte image[] =(byte[]) outData.get("image");
                        ByteArrayInputStream img = new ByteArrayInputStream(image);
                        hmimg.put("P_PARAMV3", img);
    print = JasperFillManager.fillReport(reportFileName, hmimg, jrxmlds);
    bdata= JasperExportManager.exportReportToPdf(print);

  • Tutorial - How to triple boot OSX, Linux and Windows 8.1 with a shared Data Partition without any third party Win / OSX softwares

    This is not a question, but rather a personal guide that has proved to be running successfully.
    I would like to thank numerous sources, including Christopher Murphy's suggestions at:
    Re: Repairing Boot Camp after creating new partition
    Before proceeding, there are certain concepts needs to know:
    Why Boot Camp does NOT allow further partitioning of drives after Windows has installed?
    Answer: Because the way Apple configures the Mac to be recognized as non UEFI capable system on Windows.
    Quote from Christopher Murphy based on the above line:
    However, Windows on Macs right now use CSM-BIOS mode in Mac firmware that presents BIOS to Windows rather than EFI. Windows thinks it's on a BIOS computer, and therefore mandates the use of MBR for boot disks, rather than GPT. So that's why we have this hybrid MBR+GPT approach on Mac with Windows on it. You inherit the limitations of MBR, which is four primary partitions.
    So what does it means?
    It means that OSX + EFI + Recovery HD + Boot Camp partition = 4 primary partitions and thus any attempt to modify the disk will render booting issues of either system.
    For more info on GPT (GUID Partition Table disks VS Master Boot Record or MBR in short, you may visit: http://msdn.microsoft.com/en-us/library/windows/hardware/dn640535%28v=vs.85%29.a spx)
    So, how to overcome it?
    The general guideline is to install ALL GPT ready OS first then create a Data partition, before installing Windows (Which is again, NOT supported GPT due to EFI configuration by Apple where end-users are not able to modify it).
    Interestingly, since Mac Pro 2013 Late supports only Windows 8 and above, thus it is not known if this CSM-BIOS applies to it or not.
    Do take note that GPT disks in Windows can only be booted when the system meets the 2 requirements:
    http://msdn.microsoft.com/en-us/library/windows/hardware/dn640535%28v=vs.85%29.a spx#gpt_faq_win7_boot
    1) Windows x64 version (Which is a must for newer Macs. If you cannot go to Boot Camp 5, then you need Windows 7 x86 or 32bit version)
    2) UEFI system. However, Windows sees all Macs (With the possibility of Mac Pro 2013 Late is an exception. To be determined) as BIOS, or rather NON-UEFI system.
    In short, booting on GPT disks is not possible for Mac in Windows.
    Summary,
    It is tested that a combination of the following will not work:
    - OSX + Windows + Linux
    - Windows + OSX + Linux
    - Windows + Linux + OSX
    Usually it can create the system un-bootable or OSX refused to install due to the system does not recognize such partitions and / or Disk Utility refused to format a free space. An example screen-shot is provided below:
    The error message is shown as
    Title: "Failed to erase volume" Message: "Failed to wipe volume, as an error occurred: MediaKit has reported that the device does not have enough free space to execute the requested operations."
    The second thing is about the preparations we need.
    1) 1X Windows 7 or 8 DVD or USB thumbdrive
    1A) If you uses a DVD to install, you will need another thumbdrive to load the BootCamp drivers for Windows as well as may requires an external DVD drive for newer Macs
    2) 1X Linux DVD of your choice. Personally I choose Fedora 20.
    So ready? Let's go.
    1. Using Disk Utility, shrink the OSX's partition size to what is needed. For me, I give OSX 150GB. Do NOT create any new partition.
    Disk Utility should see something like below whereby only OSX partition is left with desired disk space. The remaining space are to be unused disk space for the moment.
    Note: Click on the top most item that should start with the size of your HDD / SSD. Then clicked on "Partition" and specify the desired OSX size. Hit "Apply" after that.
    2: Download Boot Camp drivers only via Boot Camp Assistant. The USB thumbdrive shall be used later after Linux's installation.
    Boot Camp Assistant should see this:
    I have only selected "Download latest Windows Support Files from Apple"
    3. Insert Linux DVD, reboot Mac into EFI mode (The left most first "EFI mode").
    Note 1: Before rebooting, please plugged in an Ethernet adapter because Wi-Fi drivers is not installed.
    Note 2: For Thunderbolt adapters, it must be plugged in before reboot as hot-swapping is not supported under Linux. More on the tips at the end of this article.
    Note 3: Press and hold "Option" after the screen turns black. Release Option key after you see the image as below:

    For the unfortunate part that did not make it on time to edit the images:
    9. Install the Windows Support software from your CD/USB drive to gain full functionality of your computer. Reboot and go to Windows again.
    Note 1: You may choose to eject disc at this point of time. For Apple SuperDrive users, you will need to wait until the drivers (i.e. Boot Camp support files) is installed and rebooted before ejecting is reasonably possible (As I failed to figured out how to right click without the drivers)
    Note 2: Unlike Windows 7 on KBase article TS4599 Keyboard/trackpad inoperative, black screen, or alert messages when installing Windows 7, USB stick can be plugged in after the Windows installation is done. This is because Windows 7 (And probably Windows 7 with SP1 DVD) does not have a built in USB 3 drivers when it was released back in 2009 where USB3 has not arrived then.
    Note 3: Due to TPM, Bitlocker is not supported without the use of thumbdrives.
    10. Using Disk Management to determine the given drive letter for the DATA partition (DO NOT DELETE and RECREATE partition or else you can goodbye to booting Linux and OSX). Disk Management will not allow you to format it as exFAT / FAT32 in graphical way.
    Note: You may remove or modify some of the disk letters in Disk Management. However, do NOT remove / modfify the drive letter for the partition with 200MB size in HFS. This is because it will disallow booting of Linux and neither could Windows nor OSX can do anything EXCEPT to reinstall Linux only.
    11. Open Command Prompt in Administrator Mode (Important!!), and key in the following command:
    format F: /FS:exFAT
    Give this volume a label after it has successfully formatted before hitting "Enter" again.
    Note: Mine Data partition was assigned as F drive. Please make necessary adjustment to "F:" should your Data partition is assigned to other letters.
    12. After that, Setup your Data partition structure as you like.
    Tip: Minimally create the important folders such as:
    - Music
    - Documents
    - Movie (Videos)
    - Downloads
    - Pictures
    All these folders are commonly used by the 3 OSes. I do NOT recommend changing of /home (OSX and / or Linux) and / or user home directory (Windows) either partially or as a whole.
    This is because of compatibility issue.
    On a side note, iTunes Media Library used in OSX and Windows are NOT able to be use interchangably due to hard-coded path used.
    13. Useful troubleshooting in Fedora / Linux:
    With references to these:
    http://chaidarun.com/fedora-mbp
    http://anderson.the-silvas.com/2014/02/14/fedora-20-on-a-macbook-pro-13-late-201 3-retina-display/
    http://unencumberedbyfacts.com/2013/08/16/linux-on-a-macbook-pro-101/
    I would like to highlight a few important points:
    1) Wi-Fi driver:
    http://rpmfusion.org/Configuration
    Note 1: The sound driver should be installed at Out of Box Experience. However, the Wi-Fi is not.
    Note 2: Install both free and non-free repository. By the way, some other software like VLC can only be found after the Free Repository is installed.
    Search for "akmod-wl" in Gnome-Package-Installer in order to install Wi-Fi drivers
    Note 3: For those who do not have Ethernet adapters and their Mac does NOT have a built-in Ethernet port, it is recommended to get one. This is because Fedora 20 does not have a good support for iPhone USB tethering. Unsure for Andriod / Blackberry / Windows Phone users.
    2) Grub Menu:
    It will show several options to boot into OSX, even of the capability to boot into x86 or x64 mode. However, neither of them is bootable except Linux and the rescue.
    Hence, it is recommended to remove the items by hand in this file:
    /boot/efi/EFI/fedora/grub.cfg
    Command to be used:
    "sudo gedit /boot/efi/EFI/fedora/grub.cfg"
    Parts to be removed:
    - For any extra kernels, delete the target entry by locating the line "menuentry" under "/etc/grub.d/10_linux" sector to one line above the next "menuentry".
    It is recommended to keep one main kernel, and one recovery at the minimal.
    - For other OS, delete all the entry (Since neither it can works) under "/etc/grub.d/30_os-prober" sector without removing the lines starts with ###.
    Auto Mount exFAT partition:
    - After installing extra packages for exFAT support (Since it is not supported by Fedora 20 from a default installation), you may wish to edit "/etc/fstab" in order to mount the exFAT partition during boot time.
    Command to be used:
    "sudo gedit /etc/fstab"
    Add the following line in gedit:
    UUID=702D-912D /run/media/Samuel/DATA                   exfat    defaults        1 2
    Note 1: For DATA partition, OSX & Boot Camp partition, Fedora defaults mounts under: "/run/medua/<Username with case sensitive>/<Partition Label Name>"
    Note 2: UUID is unique ID. You can find out the UUID by:
    Step 1: First determine the DATA partition number:
    "sudo gdisk /dev/sda"
    Step 2: Determine the UUID of this partition number:
    "sudo blkid /dev/sda8"
    Reference 1: http://manpages.courier-mta.org/htmlman5/fstab.5.html
    Reference 2: http://liquidat.wordpress.com/2007/10/15/short-tip-get-uuid-of-hard-disks/
    3) Overheating CPU
    Solution is to issue the following command in Linux terminal: su -c "echo -n 1 > /sys/devices/system/cpu/intel_pstate/no_turbo"
    4) System resumes immediately after suspend
    Solution is to issue the following command in Linux terminal: su -c "echo XHC1 > /proc/acpi/wakeup"
    5) What does not works well out of box:
    - Both GNOME and KDE's fonts are too small to be readable for out of box experience. Additional configuration is a need. (Some of the info can be found on "More Tips" later)
    - Thunderbolt hotplugging is NOT supported under Windows and Linux so far. Neither FaceTime HD camera works as well.
    - The red light in Headphone jack is always on. I do not have luck in switching off the light without losing the sound.
    Note 1: It is determined that the module "snd_hda_intel" is used by both cards (HDMI and normal output)
    Note 2: It is also known that blacklisting it can switch off the redlight at the price of muting the system.
    Note: Based on this article, http://support.apple.com/kb/TS1574
    A Mac (Except Mac Pro) needs servicing when there is a red light while the system fails to detect internal speakers. However, this article does NOT applies to this issue.
    5A) More Tips:
    Install gnome-tweak-tool for more customization
    Search for: "gnome-package" to install:
    Install Gnome Package Installer for advanced package repository
    Install Gnome Package Updater for advanced updates to be install (Whereby Fedora's App Store alike might not show the relevant updates)
    14. Verify if disk is still GPT:
    Use Gdisk to determine if the disk is pure GPT:
    http://ubuntuforums.org/showthread.php?t=1742682
    Command: sudo gdisk -l /dev/sda (The entire hard drive)
    You should see the MBR is "Protective" instead of anything else.
    15. Congrats, the system is ready for triple boot. (I forgot to eject my Windows DVD when the photo was taken)
    Note 1: You cannot set the default startup disk in Linux due to the lack of Boot Camp Control Panel in Linux.
    Neither is changing startup disk recommended in Windows due to the inability to display correctly.
    For me, I click "Cancel" whenever I am on this tab (Feel free to make other Boot Camp adjustments in other tabs).
    Only OSX I know that can show the startup disk options correctly.
    Note 2: For some reason, OSX likes to auto mount the EFI partition everytime it boots up. It is not known to have any issue for ejecting other disks or mounting disks via Disk Utility.
    Note 3: It is not determined if any Firmware or System upgrades will cause issues. It is only known that all 3 OS's regular updates should not be an issue.
    System Updates excludes Mac OSX 10.9.3 updates to OSX 10.9.4 type as I had done it on a OSX 10.9.4 Mac or Windows 8.1 to Windows 8.1 Update 1 since my Windows DVD comes with Update 1.
    System Upgrades refers to OSX Mavericks to Yosemite, Fedora 20 to Fedora 21, Windows 8.1 Update 1 to Windows 8.2 / Windows 9 for that matter.
    Note 4: Reset SMC and / or PRAM will NOT affect your ability to boot any of the OS (OSX, Recovery HD, Fedora & Windows 8)
    Yup, that is it!

  • Installing linux and unix on my macbook pro without using vmware

    I was browsing through the forum and bumped into a topic where the best advice for installing linux application is the following:
    http://macdevcenter.com/lpt/a/7073
    However, I have not tested this out therefore I am pretty reluctant to put this on my laptop which is currently running MAC OS X 10.5.8. (4gb ram). If anyone have done this please let me know.
    1) My question: Is this a reliable method to run linux applications on MAC OS natively using the x11 from Apple?
    Note: I have vmware and I personally don't prefer booting a separate OS on my computer just to use one or two apps. However if that is the only solution I already have ubuntu running on my vmware. Also I wanted to completely wipe off my vmware and the ISO images (ubuntu and win xp) to free up the space in my hard drive. If I have to use ubuntu which may be a "safer solution" than run linux applications on my hard drive then I will stick to the vmware method.
    If someone could give me some insight in this topic then I would greatly appreciated their help.
    p.s. I want to install xilinx web-pack and other useful softwares that are only available in linux, ubuntu and win xp/vista/w7. My goal is to completely transform my laptop from dual booting ubuntu and win xp to just run mac snow leopard (in the near future).
    Thanks in advance,
    Pirakalan S.
    Message was edited by: Pirakalan S.

    Basically I want to run linux and unix applications without running vmware on my mac os x. I heard there is a way to use x11 and FinkCommander (http://finkcommander.sourceforge.net/) application. However, I am unable to figure out how to install programs such as xilinx ise (http://www.xilinx.com/ise/logicdesignprod/foundation.htm) on my MacBook Pro using FinkCommander. In addition, xilinx ise runs on linux and windows however not mac.
    In simple words I want to solely use Leapord (not snow leapord) to run applications such xilinx ise (which is only available on windows platform or linux).
    I recently shifted from windows xp platform to mac and I rarely use vmware after making the shift. Therefore, I am trying to find a solution where I don't require vmware at all, my plan is to remove vmware from my hard drive.
    I just restated what I stated in the previous post in a simpler manner, sorry for any miscommunication on the earlier post. I am looking for a step by guide to install linux applications on my mac. I am at a process of learn linux at the moment so I am kind of slow when it comes to linux and mac. Especially when it comes to installing using command line not GUI.
    I just want to know if there is a solution out there for running linux based applications to run on my mac.

  • Displaying server stored images in an air application

    Usually when I go about displaying server stored images in a regular flex application I go about it the following way:-
    - Create a mysql database table on a server which contains image names
    - Create a php file which generates all of the image namesfrom the table as xml and upload this file to the server
    - Create a new flex application/project
    - In the application make a http service which points to my php/xml file and turns this data into an array collection
    - Set the array collection to the dataprovider of a tilelist component so that all of the images will eventually be displayed within it when they are created
    - I set the itemrenderer of the tilelist to an image component which has it's source set to something like source="{'assets/images'+ data.imagename}" with imagename being the field containing the name of the image which is stored in the mysql database table.
    - Make a folder in the app/project called assets/images which will contain all of the images
    - Upload the app to the server and once it runs all the images will be displayed in the application
    - Then any images that are uploaded to the server can also be displayed as long as their names are added to the mysql database
    My question is though how do you get server stored images to display within an Air Application? My air app will be used on multiple machines but I want the images in it to be dynamic i.e. stored on a server and can be changed. How can this be done?

    I'm struggling to figure out how to access the image files when the assets/images folder will be on a server and the app itself will be on the user's desktop whereas usually in the case of a regular flex app this wouldn't mater as both the app and the image files would be on the server together. Is what I'm trying to do possible i.e. displaying images on a desktop air app straight from a server?

  • How to read the stored images

    hi
    i have images in my table img,
    i want to know how toretreive that stored image

    i have images in my table img
    > i want to know how toretreive that stored image
    How to retrieve it depends on how it is stored? What is the data type? Is it perhaps a blob (large object in binary format)? If so check out the package dbms_lob and read Application Developer's Guide - Large Objects. If not connect to your database using sql plus to publish the data type for the image column from the command "describe img".

  • Display Image based on DropDownList C# ASP

    Hello,
    So I basically created SQL Server Database and I got it working with displaying my images and drop downlist and everything, however, I want to make it to display an image only if a continent is selected. So if I select Europe, I would like to receive a picture
    and short description. Any ideas how can I add the description as well?
    So something like:
    if(ddlContinents.SelectedValue = "Europe) display image 1"
    protected void Page_Load(object sender, EventArgs e)
    if (Request.QueryString["ImageID"] != null)
    string strQuery = "select Name, ContentType, Data from tblFiles where id=@id";
    SqlCommand cmd = new SqlCommand(strQuery);
    cmd.Parameters.Add("@id", SqlDbType.Int).Value = Convert.ToInt32(Request.QueryString["ImageID"]);
    DataTable dt = GetData(cmd);
    if (dt != null)
    Byte[] bytes = (Byte[])dt.Rows[0]["Data"];
    Response.Buffer = true;
    Response.Charset = "";
    Response.Cache.SetCacheability(HttpCacheability.NoCache);
    Response.ContentType = dt.Rows[0]["ContentType"].ToString();
    Response.AddHeader("content-disposition", "attachment;filename=" + dt.Rows[0]["Name"].ToString());
    Response.BinaryWrite(bytes);
    Response.Flush();
    Response.End();
    if (!IsPostBack)
    ddlContinents.AppendDataBoundItems = true;
    String strConnString = ConfigurationManager
    .ConnectionStrings["conString"].ConnectionString;
    String strQuery = "select ID, ContinentName from Continents";
    SqlConnection con = new SqlConnection(strConnString);
    SqlCommand cmd = new SqlCommand();
    cmd.CommandType = CommandType.Text;
    cmd.CommandText = strQuery;
    cmd.Connection = con;
    try
    con.Open();
    ddlContinents.DataSource = cmd.ExecuteReader();
    ddlContinents.DataTextField = "ContinentName";
    ddlContinents.DataValueField = "ID";
    ddlContinents.DataBind();
    catch (Exception ex)
    throw ex;
    finally
    con.Close();
    con.Dispose();
    private DataTable GetData(SqlCommand cmd)
    DataTable dt = new DataTable();
    String strConnString = System.Configuration.ConfigurationManager.ConnectionStrings["conString"].ConnectionString;
    SqlConnection con = new SqlConnection(strConnString);
    SqlDataAdapter sda = new SqlDataAdapter();
    cmd.CommandType = CommandType.Text;
    cmd.Connection = con;
    try
    con.Open();
    sda.SelectCommand = cmd;
    sda.Fill(dt);
    return dt;
    catch
    return null;
    finally
    con.Close();
    sda.Dispose();
    con.Dispose();
    public void ddlCity_SelectedIndexChanged(object sender, EventArgs e)
    lblResults.Text = "You Selected " +
    ddlContinents.SelectedItem.Text + " -----> " +
    ddlCountry.SelectedItem.Text + " -----> " +
    ddlCity.SelectedItem.Text;
    public void ddlContinents_SelectedIndexChanged(object sender, EventArgs e)
    var continent = ddlContinents.SelectedValue;
    ddlCountry.Items.Clear();
    ddlCountry.Items.Add(new ListItem("--Select Country--", ""));
    ddlCity.Items.Clear();
    ddlCity.Items.Add(new ListItem("--Select City--", ""));
    ddlCountry.AppendDataBoundItems = true;
    String strConnString = ConfigurationManager.ConnectionStrings["conString"].ConnectionString;
    String strQuery = "select ID, CountryName from Countries where ContinentID=@ContinentID";
    SqlConnection con = new SqlConnection(strConnString);
    SqlCommand cmd = new SqlCommand();
    cmd.Parameters.AddWithValue("@ContinentID", ddlContinents.SelectedItem.Value);
    cmd.CommandType = CommandType.Text;
    cmd.CommandText = strQuery;
    cmd.Connection = con;
    try
    con.Open();
    ddlCountry.DataSource = cmd.ExecuteReader();
    ddlCountry.DataTextField = "CountryName";
    ddlCountry.DataValueField = "ID";
    ddlCountry.DataBind();
    if (ddlCountry.Items.Count > 1)
    ddlCountry.Enabled = true;
    else
    ddlCountry.Enabled = false;
    ddlCity.Enabled = false;
    catch (Exception ex)
    throw ex;
    finally
    con.Close();
    con.Dispose();
    <table> <tr> <td align = "center"> <<asp:image ToolTip = "ASP Image Control" ID="Image1" runat="server" ImageUrl ="Default.aspx?ImageID=1" Height="156px" Width="174px"></asp:image></td> <td align = "center"><<asp:image ToolTip = "ASP Image Control" ID="Image2" runat="server" ImageUrl ="Default.aspx?ImageID=2" Height="156px" Width="174px"></asp:image></td> <td align = "center"> <<asp:image ToolTip = "ASP Image Control" ID="Image3" runat="server" ImageUrl ="Default.aspx?ImageID=3" Height="156px" Width="174px"></asp:image></td> </tr> </table>

    Questions related to ASP.NET should be posted in the ASP.NET forums (http://forums.asp.net ).

  • Blob Problem (storing Images)

    AOA!
    I am working as a developer in a companey. we made a database for HRMS. In this database there is a table EMPLOYEE with a column PICTURE of type BLOB. We were using oracle 8i initially but when we migrate to oracle 9i, we are facing a problem in image storing. The situation is, database showing ur previously stored images (those have stored in oracle 8i) but when we save a new image in that table or any other table it seams to be saved but cannot retrived. I mean when we issue a query
    SELECT EMP_ID FROM EMPLOYEE WHERE PICTURE IS NOT NULL;
    It shows the new inserted records too (thats shows us that picture has been inserted) but when we issue query from a forms6i application it didnt show any image. In case of report, when we try to query a record which newly inserted with image, it says some thing like REPORT IS UNABLE TO SHOW IMAGE FORMATE etc.
    The situation is for all table and all schema which is indicating us may be it is some thing due to oracle 9i headen technique or due to miss managment by us. we dont have DBA in our companey.
    Please help us in this regard. We will be thankfull to you.
    Usman Rana
    Dont reply to above mantioned email my actual email account is [email protected]

    I think that both your SQL is wrong and your intended use is wrong. According to the SQL reference, the following seems to be a simplified definition that seems to match what you're trying to do. UPDATE &lt;table&gt; SET &lt;column&gt; = &lt;expr&gt;. So PROPERTIES should be a &lt;table&gt; of some kind and X should be a &lt;column&gt; of that table. This changes your PreparedStatement to *"UPDATE PROPERTIES SET X = ? WHERE NAME = ?"* Then you can do ps.setBlob(1, b) and ps.setString(2, ...). Because your statement is DML you must do ps.executeUpdate(). So your code might look something like this.
    Blob b = ...;
    String x = ...;
    ps = c.prepareStatement("UPDATE PROPERTIES SET X = ? WHERE NAME = ?");
    ps.setBlob(1, b);
    ps.setString(2, x);
    int i = ps.executeUpdate();
    The executeUpdate() returns the row count (i.e. number of rows) of your DML statement. Try that and see if it helps.

  • Which is better datatype for storing Images in 11gr2 Database ?

    Can anyone tell me which datatype should be maintained for storing images in database in terms of
    1. Space
    2. Speed.
    And, Is there another way for storing images instead of database ?
    Thanks/Regards in advacne.

    982164 wrote:
    Which one have better speed, database system or file system ?Database is better all around. It is not just a question of speed. It is a question of storage, security, flexibility, scalability, robustness and so on.
    If you use ASM and raw devices from a storage array or SAN, how do you get o/s files onto that? (requires a file system on the SAN/array LUNs)
    If it is inside the database, database security, concurrency and consistency apply to the image. Outside the database? How do you control who has access? Prevent someone with slippery fingers from accidentally deleting/renaming/moving images files? How do you backup up the image data with the image attribute data in the database?
    Having all this inside the database, part of the database, managed by the database, provides you with more flexibility, robustness, and security. After all a RDBMS is a data management system - it is designed for managing data. And that includes managing binary data.
    As for speed. Reading a 24MB image is reading 24MB worth of data. Whether that data is read by process A from disk1, or process B from disk2 - the amount of data is the same. So if you want faster I/O, then use faster disks. If disk1 is faster, process A will perform better reading the image than process B. If disk2 is faster, the roles are reversed.
    So I/O speed is not a direct function of process A or process B. It is a direct function of the I/O storage and fabric layer. Yes, a process's method of I/O can make a difference (e.g. using block reads not aligned with the physical blocks on disk). But this is more a configuration issue than process doing badly designed I/O calls.
    So the speed question is a bit loaded as it has more to do with the architecture and design of the I/O system - and less to do with the process doing that I/O. You can have a highly optimised I/O process doing poorly using an old and slow I/O layer, and poorly written I/O process doing pretty well on a SSD I/O layer.
    Databases like Oracle is designed for dealing with data - and thus effectively dealing with I/O. Lots of it. For lots of data. So I/O process design is not a consideration. The database processes will use the I/O layer as optimally as possible and as configured.

  • How to make a PDF embedded image append a report and send via fax electronically from MS SSRS 2012?

    How can I make a PDF embedded image append a SSRS 2012 report and send via fax all electronically?  Is this possible?
    Thanks in advance for your time!

    Hello,
    1. The report item Image can be used to display the image which  embedded in the report, stored in a database, stored on the report server, or stored elsewhere on the Web.
    For example, you can embedded the PDF image in the report and stored as text in the report definition.
    2.Reporting Services includes an e-mail delivery extension and a file share delivery extension which you can send report to user or group through e-mail or send the report to a shared location on your network.
    If you want to send the report to FAX, you may try to create a custom delivery extension depend on your faxing software.
    Reference:Implementing a Delivery Extension
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to autostart an OAS midtier and infrastructure???

    Hi:
    we do have OAS 10 and we need the oas server to estart on boot, but i only can do it with the data base of the infraestructure, and do not find the way to do whit the OPMNL services in both infra and midtier , Thakns

    Which operating system are you using?
    You can setup your services in a manner where they would startup automatically on reboot if you like. On Windows, you can do it using Administrative Services and configuring the startup_type for the OAS services. On unix or linux systems, you must have root authority to edit the inittab file.
    Although, you may want to make a startup script and put it as a cron job for starting up everything in proper order.
    AMN

Maybe you are looking for

  • How to make symblos in smart forms...

    Hi abapers,           In smart foms i like to have small ckeck box ie , small square box 1*1 size ...how to do ... thanks in advance , reagads , veera

  • I cant open my App Store

    since i update my mac to 10.09.02 i cant open my App Store icant open some app like notes i cant sharing projact on final cut and and some more problems also now i cant update to 10.09.03 what 2do?

  • A generic XML DTD

    Hi      I am a newbie to XML and I have a question on XML/Java, hopefully, you guys would be able to give me some pointers to solve this problem.      Here is the scenario. I need to design (might have to implement as well) a set of Java libraries th

  • Can't find Netscape

    Recvently, I installed Solaris 9 on a Sparc and then installed Netscape 7.0 using pkgadd. However, the installation did not add it onto the search path. I added it to the path in my local .cshrc and I can launch netscape from a terminal, but when I c

  • Connection:  ethernet problems and no modem?

    Hi All- I hope this isn't too stupid of a question but if it is feel free to inform me of that then berate my stupidity to you hearts desire When I bought my new Macbook a few months ago I opted out of the built in modem. I thought foolishly that I w