Using Win7 AIK to modify a OneKey image file?

Can the Windows 7 AIK (Automated Installation Kit) be used to modify a OneKey created image file?
(so that one could create a custom version of a 'factory defaults' recovery disk)
Has anyone tried this?
Scott

It appears I'm not the only one...
http://www.neowin.net/forum/topic/615151-anyone-know-what-program-opens-dsi-and-wsi-files/
Edit:
I think, by following a variation on the above linked to instructions, one might be able to extract the contents of a Factory Defaults recovery disk set, into a folder, modify the contents of that folder, and then one might be able to repack the recovery image file(s)...
If this can be done, I'll try to put together a short cmd script file.
This, as well as allowing one to clean-up the recovery image (e.g. uninstall office/mcaffee trials), would allow one to update it with service packs, add driver updates, and pre-install other apps.
Scott

Similar Messages

  • File name used by plug-in for saving the image file.

    I have a program that creates a web page that has an object tag with a call to a program and that program delivers a PDF file.  When my users want to save that image the name of the image is a random name.  Is there any way to make the plug-in, Adobe, use the meta tag Title or any other infromation that my program can provide, as image (file)  name to be used for saving the image. (the initial suggested name)?  I really appreciate your help.

    One option is to rename the file after it's been exported using Windows File I/O API.

  • Reading only Image Files from a Directory and ignoring the rest

    i am wanting to be able to read a directory but only obtain the Image files (ie, gif, jpeg, tiff, png etc) and ignore all other type of files.
    i have made a custom ImageFIlter class which extends FileFilter which works for adding a photo singly, as only image files are shown in the JFileChooser. however i am wanting to add a folder of photos at once.
    here is the code so far:
    File dir;
                        JFileChooser fc = new JFileChooser();
                        fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                        //Handle open button action.
                        int returnVal = fc.showOpenDialog(MainAppGUI.this);
                        if (returnVal == JFileChooser.APPROVE_OPTION) {
                             dir = fc.getSelectedFile();
                             if (dir.isDirectory()) {
                                  File[] files = dir.listFiles(new ImageFilter());
                                  for (int i = 0; i < files.length; i++) {
                                       if (files.isFile()) {
                                            try {
                                                 Photo PhotoAdded = workingCollection.addManyPhotos(files[i], canvas.getChangedMaxDim());
                                                 //need to also add it to the relevant vectors, ie
                                                 //for mouse over operations, or photos added after
                                                 //save.
                                                 if(!workingCollection.isDuplicate()){
                                                      photosToCheck.add(photoAdded);
                                                      canvas.addToGrid(photoAdded);
                                                      photosAddedAfterLoad.add(photoAdded);
                                                      canvas.repaint();
                                                 else{
                                                      //do nothing as it is already in the vectors.
                                            } catch (Exception er) {
                                                 // Do nothing. Bad mp3, don't add.
                                       // recurse through directories
                                       else {
                             } else {
                                  try {
                                       throw new IOException(
                                                 "Error loading files from a directory: "
                                                           + dir.getAbsolutePath() + " is not a "
                                                           + "directory");
                                  } catch (IOException e1) {
                                       // TODO Auto-generated catch block
                                       e1.printStackTrace();
    any ideas?

    I'm confused.
    You already ARE using a FileFilter to only pick up image files. Whats the problem?
    If you need to recurse directories you need to change your code only a little.
    Write your method
    JFileChooser fc = new JFileChooser();
    fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    //Handle open button action.
    int returnVal = fc.showOpenDialog(MainAppGUI.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
      dir = fc.getSelectedFile();
    if (dir.isDirectory()) {
      scanDirectory(dir);
    else{
      // not a directory
    public void scanDirectoryForPhotos(File directory){
      // taking your code
    if (dir.isDirectory()) {
      File[] files = dir.listFiles(new ImageFilter());
      for (int i = 0; i < files.length; i++) {
        if (files.isFile()) {
    // details deleted
    // recurse through directories
    else {
    scanDirectory(files[i]);
    Your exception handling is a little strange. You throw an exception only to catch it immediately to print a stack trace? Not exactly the most common handling I've seen. You should probably just throw the exception and let the next level down handle it.
    Cheers,
    evnafets

  • Incoming Image file with XML payload processing

    Hi,
    We have PI 7.1 and the interface is from file to standard RFC scenario with ABAP proxy in ECC.
    2 incoming files need to be processed by the interface - xml file with transaction details and the corresponding Image file.
    These files have to be mapped to the standard RFC and then pushed into ECC.
    Can the Java mapping be used in message mapping to pass the image file in the RFC as I do not want to use the Java module?
    If yes, can someone please help with the code and the mapping aspects?
    Regards,

    Abhishek,
    Though I never worked with server proxy with attachments,
    In my opinio, when it is possible to send attachments from outbound ABAP proxy,  then logically it should be possible to read attachments in the inbound proxies.
    I just saw this link in forum,
    [Re: Inbound proxy with attachments.|Re: Inbound proxy with attachments.]
    Regards,
    Praveen Gujjeti.
    Edited by: Praveen Gujjeti on Apr 8, 2010 5:25 PM

  • Help (LR3)! Catalog missing all image files

    In LR3 (using Windows 7):
    Suddenly, none of my image files are linked to the catalog; 14,000+ of them. The catalog is on an external hard drive, backed up on my internal hard drive. The catalog seems intact. The most recent image files are on my internal hard drive, but most are on an external hard drive. All drives are connected and I can navigate to any file that I want. But the catalog can't find the files, even though nothing has moved. When I click 'find missing files,' 14,000+ question-marked previews appear. None are linked to the image files.
    Additionally, when I 'locate' a group of missing files on the proper drive, through the Library module, then suddenly those images vanish from the previews and the number of images in the catalog (the number in parentheses) is diminished by that number. I'm at a complete loss.
    Background: I hadn't used LR for a few days. I recently installed Google Earth and apparently along with it a number of other applications that I didn't want. So I went to my Administrator tools and 'restored' my system to a previous state, from just three days ago. I've 'restored' before with no ill effects. It was after that, when I opened LR, the catalog/image disconnect was apparent. I don't know if that disconnect existed prior to my 'Restore' or if it might have been triggered by it.
    Any ideas?

    It turns out that -- somehow -- the letter assigned to the external hard drive got changed. Once I changed it back (as Administrator), all was well with the world again. (Just needed to do a little extra housekeeping.)
    Aside: How the heck does something like that happen, that a drive changes letters?

  • Image files in a table mis-aligned in Internet Explorer

    I have a website which uses a couple of tables to align image files, which consist of text in boxes. Although in Dreamweaver, there is a slight discrepancy between their positions in Firefox or Safari, I've been able to get the alignment I want with small adjustments in Dreamweaver. However, in Internet Explorer 8  the top image file of two which reside in the same table is displayed about 15 pixels to the right of the one underneath it. (The vertical positioning of the whole table is a bit off as well, but I'm less concerned with that as I attribute that to browser positioning issues.) I have no idea how this could happen, as I would think the table would constrain the two images from shifting side to side in relation to each other.
    I'm on a Mac running OSX 10.6.8. and Creative Suite 3/Dreamweaver 8
    Here's the URL:  http://www.downsizedlivingmag.com
    Any ideas as to how I can fix this? Or even better, how I can achieve the same results in IE that I get in Firefox and Safari?
    Thanks!

    Ha, ha. I love the site!
    You can use IE Conditional Comments to add some padding-top above your tables.
    http://css-tricks.com/132-how-to-create-an-ie-only-stylesheet/
    Sadly, when I disable images in my browser, your page is very short on indexable content. Search engines, translators and screen readers can't access text in images.  You might wish to re-think this design decision and opt for more real text in headings and paragraphs where it will get noticed.  Alas, designing for the web has almost nothing in common with print design. 
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Mavericks Preview corrupts image file

    I am running Mavericks on iMac circa 2011.  I can use Preview to open 16 bit tiff image files which are 1 or 2 MB each.  Because the pixel values are small, I use the Auto Level button within the Adjust Color tool to see a decent image.  However, if I then close the file by clicking on the x on the top left corner of the image, the saved image will now have zeros in the entire image.  That is, opening it again will not show anything even with the Adjust Color tool   I checked by opening it with MATLAB and sure enough, everything is zero.  This does not occur if I do not try to adjust the image contrast using the Auto Level tool.   This also does not occur if I hit the 'Reset' button within Adjust Color before closing the file.  Please help!

    The startup drive is failing, or there is some other internal hardware fault.
    Back up all data on the drive immediately if you don't already have a current backup. There are ways to back up a computer that isn't fully functional—ask if you need guidance.
    Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.
    If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present.
    Keeping your confidential data secure during hardware repair
    Apple also recommends that you deauthorize a device in the iTunes Store before having it serviced.
    *An SSD doesn't need to be zeroed.

  • DVD image file

    Hi all
    I'am use to store my DVDs production as image files (.img) in an external HD.
    Is there a way to whatch it in my mac without burning the disk?
    Thanx

    Just mount th image and open it up in Apple DVD Player

  • Creating .mem.image files

    Can anyone briefly give the procedure to compile the C code (written for a custom application using OpenSPARC T1) to create the .mem.image files??
    I have sun studio 12.2 on CentOS I am encountering errors like :
    some command under /usr/ccs/bin/ld is missing
    I am guessing that the ccs folder isnt there as a part of CentOS.If that is the case then which operating system (apart from OpenSolaris??) can be used for the .mem.image compilation???
    Kindly reply,thanks in advance.

              but if you wanted to:
              http://www.acknowledge.co.uk/snippets/java/code_examples/servlets/writetoate
              mporaryfile.html
              "Bob Lee" <[email protected]> wrote in message
              news:[email protected]..
              > If you're dynamically creating it, there may be no need to write it to a
              > file at all. You could just dynamically generate it and send it straight
              to
              > the client. Then you wouldn't have to worry about the cleanup either.
              >
              > Bob
              >
              >
              > "Mike Voltin" <[email protected]> wrote in message
              > news:[email protected]..
              > > I am dynamically creating an image file from within a servlet based
              > > upon user selections. Where is the best location to save these jpg's.
              > > I will have an img tag, <img src=theLocationAndNameOfTheImageFile>,
              > > in the HTML that I am generating.
              > >
              > > Also, what's the best way to remove these image files so that they are
              > > cleaned up properly.
              > >
              > > Thanks.
              > >
              > > Mike V.
              >
              >
              

  • How to create a Pooled VDI infrastructure using Win server 2012 as VM image?I have followed the "usual" way to build a pooled VDI desktop using Win7 or Win8 with success, but it fails when I use an image of Win Server 2012 as VM

    I have followed the "usual" way to build a pooled VDI desktop using Win7 or Win8 with success, but it fails when I use an image of Win Server 2012 as VM instead.
    Am I overlooking something?  Should I need to prepare the image in a different way? (Sysprep differently?)
    Thanks

    Hi,
    Thank you for your posting in Windows Server Forum.
    Can you specify the error which you are facing during VDI setup for server 2012?
    I might think that you need to check the memory setting for server 2012, as might happens that due to less memory you can’t setup the VDI setup properly. 
    Memory: If the Master VM is configured with static memory, it must have at least 1024 MB as startup RAM. If the Master VM is configured with dynamic memory, the maximum RAM must be at least 1024 MB.
    Please check beneath article for information.
    Windows
    Server 2012 2,500-user pooled VDI deployment guide (Doc)
    Single Image Management for Virtual Desktop Collections in Windows Server 2012
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Error in image file upload using dreamweaver

    Greeting to you all!
    Please I need you PRO help. My case seem similar to some of the ones I have seen but my code is completely different.
    I wrote this code below using PHP in Dreamweaver and its used to upload images to MySQl database. Now when I upload about 6 images, it shows File Uploaded Successfully. But if I try to upload any thing below 6 images, it will refuse to upload and will echo Upload Failed.
    <?php
    if(isset($_POST['submit']))
              $projid=$_POST['projid'];
              $projname=$_POST['projname'];
              $name=basename($_FILES['file_upload']['name']);
              $t_name=$_FILES['file_upload']['tmp_name'];
              $dir='upload';
              if(move_uploaded_file($t_name,$dir."/".$name))
              $nameone=basename($_FILES['file_uploadone']['name']);
              $t_name=$_FILES['file_uploadone']['tmp_name'];
              $dir='upload1';
              if(move_uploaded_file($t_name,$dir."/".$name))
              $nametwo=basename($_FILES['file_uploadtwo']['name']);
              $t_name=$_FILES['file_uploadtwo']['tmp_name'];
              $dir='upload2';
              if(move_uploaded_file($t_name,$dir."/".$name))
              $namethree=basename($_FILES['file_uploadthree']['name']);
              $t_name=$_FILES['file_uploadthree']['tmp_name'];
              $dir='upload3';
              if(move_uploaded_file($t_name,$dir."/".$name))
              $namefour=basename($_FILES['file_uploadfour']['name']);
              $t_name=$_FILES['file_uploadfour']['tmp_name'];
              $dir='upload4';
              if(move_uploaded_file($t_name,$dir."/".$name))
              $namefive=basename($_FILES['file_uploadfive']['name']);
              $t_name=$_FILES['file_uploadfive']['tmp_name'];
              $dir='upload5';
              if(move_uploaded_file($t_name,$dir."/".$name))
                        mysql_select_db ($database_ProjMonEva,$ProjMonEva);
                        $qur="insert into tbl_images (imageid, projid, projname, name, path, nameone, pathone, nametwo, pathtwo, namethree, paththree, namefour, pathfour, namefive, pathfive) values ('','$projid','$projname','$name','upload/$name','$nameone','upload/$nameone','$nametwo', 'upload/$nametwo','$namethree','upload/$namethree','$namefour','upload/$namefour','$namefi ve','upload/$namefive')";
                        $res=mysql_query($qur,$ProjMonEva);
                        echo 'File uploaded successful';
              else
                        echo 'upload failed!';
    ?>
    I see the problem to come from the echo but I am stock and dont know how to correct it. Can any one please help me.
    Thank you in advance Mike

    Hi Bregent,
    I have been able to resolve the issue. I modified the code this way: This I believe will help those having the same issues.
    These is how I was able to achieve it.
    1. I divided the code into two parts called addnew.php and addnewproject.php.
    The addnewproject.php as seen below will call the addnew.php when the submit button on addnewproject.php is clicked
    <form action="addnew.php" method="POST" id="Add New Project" enctype="multipart/form-data">
          <div align="center">
            <table width="600" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td id="formcells4"><strong id="subheaders">Core Details</strong></td>
                <td></td>
              </tr>
              <tr>
                <td id="dates">*Code (Eg. 2104/12/AB23):<br />
                  <label for="projcode"></label>
                  <span id="sprytextfield1">
                  <input type="text" name="projcode" id="projcode2" />
                <span class="textfieldRequiredMsg">A value is required.</span></span><br /></td>
                <td></td>
              </tr>
              <tr>
                <td colspan="2" id="dates">Project Name:
                  <label for="projname3"></label>
                  <span id="sprytextfield2">
                  <input type="text" name="projname" id="projname3" />
                  <span class="textfieldRequiredMsg">A value is required.</span></span></td>
              </tr>
              <tr>
                <td colspan="2" id="dates">Project Description:<span id="description"><br />
                  <label for="projdesc"></label>
                  <span id="txt_projdesc">
                    <textarea name="projdesc" id="projdesc" cols="70" rows="8"></textarea>
                    <span class="textareaRequiredMsg">A value is required.</span></span></span></td>
              </tr>
              <tr>
                <td id="formcells"><p id="dates">*Date Entered: <em>YYYY/MM/DD</em><span id="year">
                  <label for="projappdate"><br />
                  </label>
                  <span id="txt_dateproapp">
                    <input type="text" name="projappdate" id="projappdate" />
                    <span class="textfieldRequiredMsg">A value is required.</span></span></span></p></td>
                <td id="formcells"><p id="dates">*Project LGA:<span id="txt_projlga">
                  <label for="projlga"><br />
                  </label>
                  <span id="txt_lga">
                    <select name="projlga" id="projlga">
                      <option value="1">.... Select from list ....</option>
                      <?php
    do { 
    ?>
                      <option value="<?php echo $row_rsLGA['lga']?>"><?php echo $row_rsLGA['lga']?></option>
                      <?php
    } while ($row_rsLGA = mysql_fetch_assoc($rsLGA));
      $rows = mysql_num_rows($rsLGA);
      if($rows > 0) {
          mysql_data_seek($rsLGA, 0);
                $row_rsLGA = mysql_fetch_assoc($rsLGA);
    ?>
                    </select>
                <span class="selectRequiredMsg">Please select an item.</span></span></span></p></td>
              </tr>
              <tr>
                <td id="formcells6"><p id="dates">*Project Community:<span id="txt_ojcommunity">
                  <label for="projcommunity"><br />
                  </label>
                  <select name="projcommunity" id="projcommunity">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsCommunity['community']?>"><?php echo $row_rsCommunity['community']?></option>
                    <?php
    } while ($row_rsCommunity = mysql_fetch_assoc($rsCommunity));
      $rows = mysql_num_rows($rsCommunity);
      if($rows > 0) {
          mysql_data_seek($rsCommunity, 0);
                $row_rsCommunity = mysql_fetch_assoc($rsCommunity);
    ?>
                  </select>
                </span></p></td>
                <td id="formcells6"><p id="dates">*Project State:<span id="txt_projstate"><br />
                  <select name="projstate" id="projstate">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsState['state']?>"><?php echo $row_rsState['state']?></option>
                    <?php
    } while ($row_rsState = mysql_fetch_assoc($rsState));
      $rows = mysql_num_rows($rsState);
      if($rows > 0) {
          mysql_data_seek($rsState, 0);
                $row_rsState = mysql_fetch_assoc($rsState);
    ?>
                  </select>
                </span></p></td>
              </tr>
              <tr>
                <td height="63" id="formcells8"><p id="dates">Project Cost:<span id="txt_projcost"><br />
                  <label for="projcost"></label>
                  <span id="txt_projectcost">
                    <input name="projcost" type="text" id="projcost" />
                    <span class="textfieldRequiredMsg">A value is required.</span></span></span></p></td>
                <td id="formcells"><p id="dates">*Project Type:<span id="txt_projtype"><br />
                  <label for="projtype"></label>
                  <select name="projtype" id="projtype">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsType['projtypelist']?>"><?php echo $row_rsType['projtypelist']?></option>
                    <?php
    } while ($row_rsType = mysql_fetch_assoc($rsType));
      $rows = mysql_num_rows($rsType);
      if($rows > 0) {
          mysql_data_seek($rsType, 0);
                $row_rsType = mysql_fetch_assoc($rsType);
    ?>
                  </select>
                </span></p></td>
              </tr>
              <tr>
                <td colspan="2" id="formcells2"><p id="dates">Project Baseline Data:<span id="sprytextarea2"><br />
                  <label for="projbaselinedata"></label>
                  <textarea name="projbaselinedata" id="projbaselinedata" cols="70" rows="8"></textarea>
                </span></p></td>
              </tr>
              <tr>
                <td colspan="2" id="formcells3"><p id="dates">Expected Outcome Of Project:<span id="sprytextarea3"><br />
                  <label for="Projexpoutcome"></label>
                  <textarea name="Projexpoutcome" id="Projexpoutcome" cols="70" rows="8"></textarea>
                </span></p></td>
              </tr>
            </table>
            <table width="600" border="0" cellpadding="0" cellspacing="0" id="teamtable">
              <tr>
                <td colspan="2"><strong id="subheaders">Beneficiaries</strong></td>
              </tr>
              <tr>
                <td width="241"><p>Adult Men Beneficiaries: <span id="txt_adultmen">
                  <label for="adultmen"><br />
                  </label>
                  <input name="adultmen" type="text" id="adultmen" />
                </span></p></td>
                <td width="259"><p>Adult Female Beneficiaries:<span id="txt_adultfem"><br />
                  <label for="adultfem"></label>
                  <input name="adultfem" type="text" id="adultfem" />
                </span></p></td>
              </tr>
              <tr>
                <td><p>Adult Children Beneficiaries:<span id="txt_totalchildren"><br />
                  <label for="children"></label>
                  <input name="totalchildren" type="text" id="totalchildren" />
                </span></p></td>
                <td><p>Total Beneficiaries:<span id="sprytextfield4"><br />
                  <label for="totalben"></label>
                  <input name="totalben" type="text" id="totalben" readonly="readonly" />
                </span></p></td>
              </tr>
              <tr>
                <td><p> </p></td>
                <td><p> </p></td>
              </tr>
              <tr>
                <td><strong id="subheaders">Project Team</strong></td>
                <td><p> </p></td>
              </tr>
              <tr>
                <td><p>*Project Team Leader:<span id="spryselect1"><br />
                  <label for="projteamlead"></label>
                  <select name="projteamlead" id="projteamlead">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProjectTeam['fullname']?>"><?php echo $row_rsProjectTeam['fullname']?></option>
                    <?php
    } while ($row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam));
      $rows = mysql_num_rows($rsProjectTeam);
      if($rows > 0) {
          mysql_data_seek($rsProjectTeam, 0);
                $row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam);
    ?>
                  </select>
                </span></p></td>
                <td><p>*Deputy Team Leader:<span id="spryselect2"><br />
                  <label for="projteamlead"></label>
                  <select name="projdepteamlead" id="projdepteamlead">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProjectTeam['fullname']?>"><?php echo $row_rsProjectTeam['fullname']?></option>
                    <?php
    } while ($row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam));
      $rows = mysql_num_rows($rsProjectTeam);
      if($rows > 0) {
          mysql_data_seek($rsProjectTeam, 0);
                $row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam);
    ?>
                  </select>
                </span></p></td>
              </tr>
              <tr>
                <td><p>*Project Officer:<span id="spryselect3"><br />
                  <label for="projteamlead"></label>
                  <select name="projofficer" id="projofficer">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProjectTeam['fullname']?>"><?php echo $row_rsProjectTeam['fullname']?></option>
                    <?php
    } while ($row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam));
      $rows = mysql_num_rows($rsProjectTeam);
      if($rows > 0) {
          mysql_data_seek($rsProjectTeam, 0);
                $row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam);
    ?>
                  </select>
                </span></p></td>
                <td><p>*Liason Officer:<span id="spryselect4"><br />
                  <label for="projteamlead"></label>
                  <select name="projliasonofficer" id="projliasonofficer">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProjectTeam['fullname']?>"><?php echo $row_rsProjectTeam['fullname']?></option>
                    <?php
    } while ($row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam));
      $rows = mysql_num_rows($rsProjectTeam);
      if($rows > 0) {
          mysql_data_seek($rsProjectTeam, 0);
                $row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam);
    ?>
                  </select>
                </span></p></td>
              </tr>
            </table>
            <table width="600" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="300" id="moredetails2"> </td>
                <td width="300"> </td>
              </tr>
              <tr id="moredetails">
                <td width="300" id="moredetails"><strong id="subheaders">Meeting Dates</strong></td>
                <td width="300"><strong id="subheaders">Other Dates</strong></td>
              </tr>
              <tr id="formrows">
                <td width="300" id="formrows"><p id="dates">*1st  Meeting Date: <em>YYYY/MM/DD</em><span id="txt_projmeeting1"><br />
                  <input type="text" name="projmeeting1" id="projmeeting1" />
                </span></p></td>
                <td width="300" id="formrows"><p id="dates">*Project Start Date: <em id="formcells">YYYY/MM/DD</em><span id="txt_projstartdate">
                  <label for="projstartdate"></label>
                  <input type="text" name="projstartdate" id="projstartdate" />
                  </span>
                  <label for="projstartdate"></label>
                </p></td>
              </tr>
              <tr>
                <td width="300" id="formrows"><p id="dates">*2nd  Meeting Date: <em>YYYY/MM/DD</em><span id="txt_projmeeting2"><br />
                  <input type="text" name="projmeeting2" id="projmeeting2" />
                  </span>
                  <label for="projteam2"></label>
                  <label for="projmeeting2"></label>
                </p></td>
                <td width="300" id="formrows"><p id="dates">*Project End Date: <em>YYYY/MM/DD</em><span id="txt_projenddate"><br />
                  <label for="projenddate2"></label>
                  <input type="text" name="projenddate" id="projenddate" />
                </span></p></td>
              </tr>
              <tr>
                <td width="300" id="formrows"><p id="dates">*3rd Meeting Date: <em>YYYY/MM/DD</em><span id="txt_projmeeting3"><br />
                  <input type="text" name="projmeeting3" id="projmeeting3" />
                </span></p></td>
                <td width="300" id="formrows"><p id="dates">*MoU Signing Date: <em id="formcells">YYYY/MM/DD</em><span id="txt_projmousigndate"><br />
                  <label for="projmousigndate"></label>
                  <input type="text" name="projmousigndate" id="projmousigndate" />
                </span></p></td>
              </tr>
              <tr>
                <td colspan="2" id="formrows2"><div align="center" id="notice"><img src="images/notice.jpg" width="501" height="73" /></div></td>
              </tr>
            </table>
          </div>
          <p align="center"></p>
          <p align="center" id="text">
            <input type="file" name="file_upload" />
            <input type="file" name="file_uploadone" />
            <input type="file" name="file_uploadtwo" />
          </p>
          <p align="center" id="text">
            <input type="file" name="file_uploadthree" />
            <input type="file" name="file_uploadfour" />
            <input type="file" name="file_uploadfive" />
          </p>
          <p align="center">
            <input type="submit" name="submit" value="Save &amp; Submit"/>
          </p>
        </form>
    The addnew.php will now execute and add the data and image file names and path to MySQL database and upload the images to their various locations. it will also check the image file size be sure its not more than 100kb and must really be an iamge with format .jpg, .png and .gif.
    <?php
    if(isset($_POST['submit']))
              $projcode=$_POST['projcode'];
              $projname=$_POST['projname'];
              $projname=$_POST['projname'];
              $projdesc=$_POST['projdesc'];
              $projappdate=$_POST['projappdate'];
              $projcommunity=$_POST['projcommunity'];
              $projlga=$_POST['projlga'];
              $projstate=$_POST['projstate'];
              $projcost=$_POST['projcost'];
              $projtype=$_POST['projtype'];
              $projbaselinedata=$_POST['projbaselinedata'];
              $Projexpoutcome=$_POST['Projexpoutcome'];
              $adultmen=$_POST['adultmen'];
              $adultfem=$_POST['adultfem'];
              $totalchildren=$_POST['totalchildren'];
              $totalben=$_POST['totalben'];
              $projteamlead=$_POST['projteamlead'];
              $projdepteamlead=$_POST['projdepteamlead'];
              $projofficer=$_POST['projofficer'];
              $projliasonofficer=$_POST['projliasonofficer'];
              $projmeeting1=$_POST['projmeeting1'];
              $projmeeting2=$_POST['projmeeting2'];
              $projmeeting3=$_POST['projmeeting3'];
              $projmousigndate=$_POST['projmousigndate'];
              $projstartdate=$_POST['projstartdate'];
              $projenddate=$_POST['projenddate'];
              $name=basename($_FILES['file_upload']['name']);
              $t_name=$_FILES['file_upload']['tmp_name'];
              $dir='imageone';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_upload']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_upload']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$name))
                        echo 'File 1 uploaded successfully....!';
              else
                        echo 'File 1 upload failed or was not submitted....!  ';
              $nameone=basename($_FILES['file_uploadone']['name']);
              $t_name=$_FILES['file_uploadone']['tmp_name'];
              $dir='imagetwo';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_uploadone']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_uploadone']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$nameone))
                        echo 'File 2 was uploaded successfully....!';
              else
                        echo '...File 2 upload failed or was not submitted!  ';
              $nametwo=basename($_FILES['file_uploadtwo']['name']);
              $t_name=$_FILES['file_uploadtwo']['tmp_name'];
              $dir='imagethree';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_uploadtwo']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_uploadtwo']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$nametwo))
                        echo 'File 3 uploaded successfully';
              else
                        echo '...File 3 upload failed or was not submitted!  ';
              $namethree=basename($_FILES['file_uploadthree']['name']);
              $t_name=$_FILES['file_uploadthree']['tmp_name'];
              $dir='imagefour';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_uploadthree']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_uploadthree']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$namethree))
                        echo 'File 4 uploaded successfully';
              else
                        echo '...File 4 upload failed or was not submitted!  ';
              $namefour=basename($_FILES['file_uploadfour']['name']);
              $t_name=$_FILES['file_uploadfour']['tmp_name'];
              $dir='imagefive';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_uploadfour']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_uploadfour']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$namefour))
                        echo 'File 5 uploaded successfully';
              else
                        echo '...File 5 upload failed or was not submitted!  ';
              $namefive=basename($_FILES['file_uploadfive']['name']);
              $t_name=$_FILES['file_uploadfive']['tmp_name'];
              $dir='imagesix';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_uploadfive']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_uploadfive']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$namefive))
                        echo '    File 6 uploaded successfully';
              else
                        echo '....File 6 upload failed or was not submitted!  ';
              mysql_select_db ($database_XXXXXXXX,$XXXXXXXX); where XXXXXXXX is my database connection details. Please change to yours.
                        $qur=("insert into tbl_projects (projid, projcode, projname, projdesc, projappdate, projcommunity, projlga, projstate, projcost, projtype, projbaselinedata, Projexpoutcome, adultmen, adultfem, totalchildren, totalben, projteamlead, projdepteamlead, projofficer, projliasonofficer, projmeeting1, projmeeting2, projmeeting3, projmousigndate, projstartdate, projenddate, name, path, nameone, pathone, nametwo, pathtwo, namethree, paththree, namefour, pathfour, namefive, pathfive) VALUES ('', '$projcode','$projname','$projdesc', '$projappdate', '$projcommunity', '$projlga', '$projstate', '$projcost', '$projtype', '$projbaselinedata', '$Projexpoutcome', '$adultmen', '$adultfem', '$totalchildren', '$totalben', '$projteamlead', '$projdepteamlead', '$projofficer', '$projliasonofficer', '$projmeeting1', '$projmeeting2', '$projmeeting3', '$projmousigndate', '$projstartdate', '$projenddate','$name','imageone/$name','$nameone','imagetwo/$nameone', '$nametwo', 'imagethree/$nametwo', '$namethree', 'imagefour/$namethree', '$namefour', 'imagefive/$namefour', '$namefive', 'imagesix/$namefive')");
                        $res=mysql_query($qur,$XXXXXXXX);
    ?>
    Thank you. Hope this helps all those that are learning
    Message was edited by: Prince Mike

  • Modifying colors in images

    I am trying to create a vi in Labview 7.1 that will upload an image from a jpeg file, modify the color and luminance of the image, and then output the image as a jpeg file. I am currently able to input and output the image to a file, but I am having difficulty modifying the colors of images. I read in a manual that the color control was a 32 bit array, but when I try to make my own array and wire it to the color control on the image block, it breaks the wire and won't let me make the condition. How do you design a proper array to set color and which array elements correspond to red, blue, green, hue, luminance, and saturation of the image? I am able to manually adjust the color and set my own color in rectangles, but I wanted to create an automated process with an array to automatically generate a range of colors.
    The other problem I was having was getting the image to be displayed on the visual panel of Labview. I can import and export the jpeg file, but I cannot get it to be displayed on the grid. I would greatly appreciate any assistance and advice you have.
    Thanks,
    Daniel

    If you are going to do some heavy image manipulation, you may wish to look into a LV toolkit called IMAQ, which allows you to go that way.
    If not, you can start by using the standard picture VIs (Graphics & Sound palette), which I assume you already do to read and write the file.
    LV treats a picture in one of three formats:
    1. Picture - the blue wire. You will need to to use this for any manipulation using the picture VIs.
    2. Pixmap. A 2D numeric array in which each cell holds the color value of the coresponding pixel.
    3. Flattened pixmap. A cluster holding all the picture information in which the pixel data is stored as 1D array.
    There are VIs for converting all these formats.
    To replace colors you can simply use Replace Array Subset to replace specific cells either in the 1D or 2D array or use the Draw point VI. The main problem you will have is that you will need to calculate everything on your own. If you want to modify the entire image, you can go over the array in a loop and (for example) increase all values by 1000 and see what that does.
    All of this can be found from reading the help files for the VIs (right click>>Help), which is what I suggest you do to learn more about this.
    You can display an image simply by converting to the first format right clicking the VI output (picture) and selecting Create>>Indicator. because it's a picture format, a picture indicator will automatically be created.
    It sound as if you don't have much experience in LV. Also, try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide.
    Try to take over the world!

  • Possible to use RMI to upload client side image files?

    Is it possible to use RMI to upload client side image files? My intent is to allow remote clients to upload a number of small image files (jpg & gif) to a central server DBMS, by modifying a "Customer" object (eg adding a new Image object to a vector of Images?) Is this possible? Any suggestions greatly appreciated :))

    Is it possible to use RMI to upload client side image
    files? One possibility is to implement a serializable image object that you can upload to the server as any other object. When your server receives this serialized image object, just generate a new gif/jpg from it.
    But if your client-program is an applet, the situation is different: how can applet read image-file from users harddrive?
    krera

  • How to import programmatically an APEX images file using workspace images option and CSS files to APEX?

    Oracle db 11gR2
    Oracle APEX 4.2.1
    Linux RHEL 6.3
    I am importing a images file programmatically into APEX.  And also a CSS file.
    I want to add an images file to my APEX instance but I want to choose the option -- workspace images --.  How does one do that programmatically via the APEX API e.g.?
    I don't want the images tied to an application within APEX.
    Does one do the same thing for CSS files that are imported to APEX?
    thx.

    This is interesting and helpful,  I use the following code to import my APEX database application and run it via SQL*Plus and it works fine for database applications -- what do I need to change/add/modify in order to load the images and CSS files?  NOTE: I want the images to be -- Workspace images -- not tied to any application.  Also, I need to handle the situation where the images and CSS data already exist in the APEX environment as well as when they are not there (i.e. initial install).  Usually it is a case where it is an upgrade so the data already exists in the APEX app and just needs to be updated.
    declare
                      v_workspace      varchar2(35)    := 'WORKSPACE';
                      n_existing_app   number          := 123;
                      n_new_app        number          := 456;
                      v_app_alias      varchar2(35)    := 'WKALIAS';
                      v_parsing_schema varchar2(35) :='WORKSPACE_PARSE';
                      n_secgrp_id      number;
                      v_err_msg        varchar2(200);
                      n_err_num        number;
                      n_workspace_id   number;
                    begin
                      -- get workspace id
                      select workspace_id
                      into n_workspace_id
                      from apex_workspaces
                      where workspace = v_workspace;
                      -- set workspace id
                      apex_application_install.set_workspace_id (n_workspace_id);   
                      -- set security group
                      apex_util.set_security_group_id (p_security_group_id => apex_application_install.get_workspace_id);
                      -- set pasring schema
                      apex_application_install.set_schema(p_schema => v_parsing_schema);
                      -- delete existing app
                      begin
                        wwv_flow_api.remove_flow(n_existing_app);
                      exception
                      when NO_DATA_FOUND then -- do nothing when the application does not exist
                        null;
                      end; 
                      -- set new app id
                      apex_application_install.set_application_id(p_application_id => n_new_app);
                      -- generate offset
                      apex_application_install.generate_offset;
                      -- set application alias
                      apex_application_install.set_application_alias(p_application_alias => v_app_alias);
                      exception
                      when others then        
                        n_err_num := SQLCODE;
                        v_err_msg := SUBSTR(SQLERRM, 1, 200);
                        dbms_output.put_line('Error number = ' || n_err_num);     
                        dbms_output.put_line('Error message = ' || v_err_msg);
                    end;
    @newapp.sql
    commit;

  • HT201250 Hello i am using TimeMachine to back-up entire Mac image (data + system) on an usb-local drive. I would like (on top of it) add a specific plan to back up some files on a remote network drive. Does TimeMachine support multiple back-up plans ? How

    Hello i am using TimeMachine to back-up entire Mac image (data + system) on an usb-local drive. I would like (on top of it) add a specific plan to back up some files on a remote network drive. Does TimeMachine support multiple back-up plans ? How ?

    Time Machine is capable of backing up to multiple locations, and can be used to back up to both a local hard drive and a networked drive (provided that that drive is in or connected to a Time Capsule or another Mac that is sharing it over the network). The catch, though, is that you can't specify different things to back up to different destinations. Whatever you exclude from Time Machine backups is excluded from ALL backups, and whatever is included is included on all.
    So, get a large enough drive that you can back up everything you want in all locations, or use something else for maintaining the network backup.
    More information on these topics can be found here:
    How do I set up Time Machine to a shared drive on another Mac?
    How do I set up Time Machine to a Time Capsule or Airport Extreme?
    "Rotating" Time Machine backup disks

Maybe you are looking for