Inserting an image from a CSV file

I am trying to create a document that is a directory of members of a community.  The directory is in a CSV file.  One ot the fields is a @photos field that contains the path to the location of the images on my local compiuter,  When I try and preview with the Data Merge panel I get the attached error message,  The path reads:
/Users/jhaynes/Documents/Falcons_Landing/images
All the other fields preview correctly.

@Jim – the right syntax for your Mac OSX would be:
Macintosh_HD:Users:jhaynes:Documents:Falcons_Landing:images:jhaynes.jpg
: instead of /
Note: it's all case sensitive.
In my personal case the line above would not work, because in my system it's "Macintosh HD" (a blank between Macintosh and HD) instead of "Macintosh_HD" with an underscore. But this may vary…
It's amazing, that InDesign's datamerge functionality on Mac OSX relies on that old syntax, wheras you could go to your images folder in the finder with typing "Users/jhaynes/Documents/Falcons_Landing/images" in the Go To Folder dialog. Using the : syntax there would not work.
That leaves one question:
What to do with special characters in file names like umlauts äAöÖüÜ, accented ones like áàÁÀ etc.pp.?
Will they break that workflow on Mac OSX with HFS+ formatted volumes?
Very likely…
And that's because on Mac OSX umlauts and accented characters in file names are composite characters (made out of two glyphs) instead of single characters. But not only because of that…
Here an example:
You found out that the easiest way to get a file path is to drag a file to a pure text file opened in TextEdit App.
Fine. You now know, that all "/"-signs must be changed to ":". No problem with a quick find/change action.
Then you saved the file as pure text file with a txt suffix.
All good and well?
Perhaps. Perhaps not.
A simple "ö" in a file name could ruin your workflow!
Datamerge in InDesign would accept the text file as source, but would have problems to place the file with the umlaut. Precisely it will see the "ö" not as "ö" but as: "Äà"!
Ah! You think, the composite characters problem kicks in. And right you are.
No problem then: we could replace "ö" with our own typed "ö" in TextEdit.
But to our surprise datamerge get the following instead of an ö: "√∂". Another composite…
If you open the text file in TextEdit you cannot spot the difference.
You can only see there is the represantation of character "ö".
Here the solution to this puzzle:
Choose "Unicode (UTF-16)" instead of "Unicode (UTF-8)" when saving your text file to pure text in TextEdit.
Uwe

Similar Messages

  • Insert an image from a Database

    Hi - I am trying to insert an image from a database into a webpage.  Basically when clients register on the site they upload their logo which i want to come up when they look at their account details and when they post a job.  When I test the file upload the file name is in an "image" field in my database and the image is in the website files on the server but I am having problems trying to get the logo to shop up on the webpage.  I have one table called Recruiters where all the client's contact details (and logo upload goes) and a table called jobs where all the job details go when they post a job (this does not hold the logo upload). 
    At the moment i am trying to insert the image into the Recruiter account Details page where all the clients contact details are and all this information comes from the Recruiter table (including the image) but the image does not appear.  the query in my recordset is:-
    SELECT *
    FROM recruiters
    WHERE RecruiterID = colname
    (colname = $_GET['RecruiterID'])
    <?php require_once('../Connections/laura.php'); ?>
    <?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
      $logoutGoTo = "../index.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "Recruiter";
    $MM_donotCheckaccess = "false";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && false) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "../Unavailablepage.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $colname_rsAccountDetails = "-1";
    if (isset($_GET['RecruiterID'])) {
      $colname_rsAccountDetails = $_GET['RecruiterID'];
    mysql_select_db($database_laura, $laura);
    $query_rsAccountDetails = sprintf("SELECT * FROM recruiters WHERE RecruiterID = %s", GetSQLValueString($colname_rsAccountDetails, "int"));
    $rsAccountDetails = mysql_query($query_rsAccountDetails, $laura) or die(mysql_error());
    $row_rsAccountDetails = mysql_fetch_assoc($rsAccountDetails);
    $totalRows_rsAccountDetails = mysql_num_rows($rsAccountDetails);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Nursery and Childcare Jobs in the UK</title>
    <link href="../CSS/Global.css" rel="stylesheet" type="text/css" />
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <!-- google adwords -->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-6435415-4']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><!-- end .header --><a href="../index.php"><img src="../Images/Logo.png" width="900" height="200" alt="Logo" /></a></div>
       <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="../index.php">Home</a>      </li>
          <li><a href="#" class="MenuBarItemSubmenu">Recruiters</a>
            <ul>
              <li><a href="recruiterbenefits.php">Benefits</a></li>
              <li><a href="recruiterfees.php">Fees</a></li>
              <li><a href="recreg.php">Register</a></li>
              <li><a href="reclogin.php">Login </a></li>
            </ul>
          </li>
          <li><a class="MenuBarItemSubmenu" href="#">Jobseekers</a>
            <ul>
              <li><a href="../Jobseekerarea/jobseekerbenefits.php">Benefits</a>          </li>
              <li><a href="../Jobseekerarea/jobseekerreg1.php">Register</a></li>
              <li><a href="../Jobseekerarea/jslogin.php">Login</a></li>
            </ul>
          </li>
          <li><a href="../contactus.php">Contact Us</a></li>
      </ul>
      <div class="sidebar1">
        <p> </p>
        <div class="recruitsidebar">
          <ul id="MenuBar2" class="MenuBarVertical">
            <li><a href="postajob.php">Post a Job</a></li>
            <li><a href="recruiterjobs1.php">My Jobs</a></li>
            <li><a href="recAccdetails.php?RecruiterID=<?php echo $row_rsAccountDetails['RecruiterID']; ?>">My Details</a></li>
            <li><a href="Saferrecruitment.php">Safer Recruitment</a></li>
            <li><a href="Interview1.php" class="MenuBarItemSubmenu">Interviewing Staff</a>
              <ul>
                <li><a href="recInterviewquestions.php">Nursery Staff Interview Questions</a></li>
              </ul>
            </li>
            <li><a href="Nurseryjobsdescriptions.php">Nursery Job Descriptions</a></li>
            <li><a href="recruiterarea.php">Recruiter Home</a></li>
    <li><a href="<?php echo $logoutAction ?>">Log Out</a></li>
          </ul>
          <p> </p>
        </div>
    </div>
      <div class="content">
        <h1>Account Details</h1>
        <p>Below are the details you have provided us with about your nursery/setting.</p>
        <p> </p>
        <form id="accountdetailsform" name="accountdetailsform" method="post" action="recUpdate.php?RecruiterID=<?php echo $row_rsAccountDetails['RecruiterID']; ?>">
          <table width="580" border="0" cellpadding="3" cellspacing="3" id="accountdetails">
            <tr>
              <td width="212" scope="col">Nursery/Setting Name</td>
              <td width="347" scope="col"><?php echo $row_rsAccountDetails['client']; ?></td>
            </tr>
            <tr>
              <td>Contact Name</td>
              <td><?php echo $row_rsAccountDetails['contactname']; ?></td>
            </tr>
            <tr>
              <td>Setting Type</td>
              <td><?php echo $row_rsAccountDetails['settingtype']; ?></td>
            </tr>
            <tr>
              <td>Nursery/Setting</td>
              <td><?php echo $row_rsAccountDetails['Setting']; ?></td>
            </tr>
            <tr>
              <td>Building Name/Number</td>
              <td><?php echo $row_rsAccountDetails['buildingnumber']; ?></td>
            </tr>
            <tr>
              <td>Street Name</td>
              <td><?php echo $row_rsAccountDetails['streetname']; ?></td>
            </tr>
            <tr>
              <td>Address</td>
              <td><?php echo $row_rsAccountDetails['address3']; ?></td>
            </tr>
            <tr>
              <td>Town/City</td>
              <td><?php echo $row_rsAccountDetails['town']; ?></td>
            </tr>
            <tr>
              <td>Post Code</td>
              <td><?php echo $row_rsAccountDetails['postcode']; ?></td>
            </tr>
            <tr>
              <td>Region</td>
              <td><?php echo $row_rsAccountDetails['region']; ?></td>
            </tr>
            <tr>
              <td>Telephone</td>
              <td><?php echo $row_rsAccountDetails['telephone']; ?></td>
            </tr>
            <tr>
              <td>Email</td>
              <td><?php echo $row_rsAccountDetails['email']; ?></td>
            </tr>
            <tr>
              <td>Website</td>
              <td><?php echo $row_rsAccountDetails['WebAddress']; ?></td>
            </tr>
            <tr>
              <td>Password</td>
              <td> </td>
            </tr>
            <tr>
              <td>Logo</td>
              <td><img src="<?php echo $row_rsAccountDetails['Image']; ?>" alt="Logo" /></td>
            </tr>
            <tr>
              <td>Date Registered</td>
              <td><?php echo $row_rsAccountDetails['dateregistered']; ?></td>
            </tr>
          </table>
          <p>
            <input name="hiddenField" type="hidden" id="hiddenField" value="<?php echo $row_rsAccountDetails['RecruiterID']; ?>" />
          </p>
          <p>
            <input type="submit" name="Update" id="Update" value="Update Details" />
          </p>
          <p> </p>
        </form>
        <p> </p>
        <table width="600" border="0" cellpadding="3" cellspacing="3" class="postform">
          <tr>      </tr>
          <tr>      </tr>
          <tr>      </tr>
        </table>
        <p> </p>
    <p> </p>
    </div>
      <div class="sidebar2">
        <h4> </h4>
        <!-- end .sidebar2 --></div>
      <div class="footer">
        <p><a href="../index.php">Home</a> | <a href="../contactus.php">Contact us</a> | <a href="../PrivacyPolicy.php">Privacy</a> | <a href="../termsandconditions.php">Terms of Business</a></p>
        <p>&copy; theNurseryJobSite.com 2011</p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsAccountDetails);
    ?>

    Hi
    You were right – I had to insert full path and it has worked so thanks.
    Would you be able to help me out with inserting the logo into a job post page and  the recordset I will need to insert the logo?
    Basically I want to add the logo that is uploaded when a client registers on the site onto a job info page.  To access the the details about a job, jobseekers just click on the job that interests them which takes them to the job details page which pulls all the information from the "Job" table in the database.  However, the logo is stored in the "image" field in the "Recruiter" table in the database.   I have tried setting up a recordset as:-
    SELECT Image
    FROM recruiters
    WHERE RecruiterID = colname
    (colname = $_GET['RecruiterID'])
    <?php require_once('../Connections/laura.php'); ?>
    <?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
      $logoutGoTo = "../index.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "Recruiter";
    $MM_donotCheckaccess = "false";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && false) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "../Unavailablepage.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $colname_rsDetails = "-1";
    if (isset($_GET['JobID'])) {
      $colname_rsDetails = $_GET['JobID'];
    mysql_select_db($database_laura, $laura);
    $query_rsDetails = sprintf("SELECT * FROM jobs WHERE JobID = %s", GetSQLValueString($colname_rsDetails, "text"));
    $rsDetails = mysql_query($query_rsDetails, $laura) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = "-1";
    if (isset($_GET['JobID'])) {
      $totalRows_rsDetails = $_GET['JobID'];
    mysql_select_db($database_laura, $laura);
    $query_rsDetails = sprintf("SELECT recruiters.Image, jobs.JobID, jobs.RecruiterID, jobs.jobtitle, jobs.`Position`, jobs.Nursery, jobs.branchlocation, jobs.ContactName, jobs.JobDescription, jobs.Location, jobs.town, jobs.employmenttype, jobs.Hours, jobs.qualifications, jobs.Salary, jobs.ContactNo, jobs.Email, jobs.dateposted  FROM jobs, recruiters WHERE JobID = %s", GetSQLValueString($colname_rsDetails, "int"));
    $rsDetails = mysql_query($query_rsDetails, $laura) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = "-1";
    if (isset($_GET['JobID'])) {
      $totalRows_rsDetails = $_GET['JobID'];
    mysql_select_db($database_laura, $laura);
    $query_rsDetails = sprintf("SELECT recruiters.Image, jobs.JobID, jobs.RecruiterID, jobs.jobtitle, jobs.`Position`, jobs.Nursery, jobs.branchlocation, jobs.ContactName, jobs.JobDescription, jobs.Location, jobs.town, jobs.employmenttype, jobs.Hours, jobs.qualifications, jobs.Salary, jobs.ContactNo, jobs.Email, jobs.dateposted FROM jobs, recruiters WHERE JobID = %s", GetSQLValueString($colname_rsDetails, "int"));
    $rsDetails = mysql_query($query_rsDetails, $laura) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = "-1";
    if (isset($_GET['JobID'])) {
      $totalRows_rsDetails = $_GET['JobID'];
    mysql_select_db($database_laura, $laura);
    $query_rsDetails = sprintf("SELECT recruiters.Image, jobs.JobID, jobs.RecruiterID, jobs.jobtitle, jobs.`Position`, jobs.Nursery, jobs.branchlocation, jobs.ContactName, jobs.JobDescription, jobs.Location, jobs.town, jobs.employmenttype, jobs.Hours, jobs.qualifications, jobs.Salary, jobs.ContactNo, jobs.Email, jobs.dateposted FROM jobs, recruiters WHERE JobID = %s", GetSQLValueString($totalRows_rsDetails, "int"));
    $rsDetails = mysql_query($query_rsDetails, $laura) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = mysql_num_rows($rsDetails);
    $colname_rsRecruiterID2 = "-1";
    if (isset($_GET['RecruiterID'])) {
      $colname_rsRecruiterID2 = $_GET['RecruiterID'];
    mysql_select_db($database_laura, $laura);
    $query_rsRecruiterID2 = sprintf("SELECT RecruiterID FROM recruiters WHERE RecruiterID = %s", GetSQLValueString($colname_rsRecruiterID2, "int"));
    $rsRecruiterID2 = mysql_query($query_rsRecruiterID2, $laura) or die(mysql_error());
    $row_rsRecruiterID2 = mysql_fetch_assoc($rsRecruiterID2);
    $totalRows_rsRecruiterID2 = mysql_num_rows($rsRecruiterID2);
    $colname_rsRecruiterID = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_rsRecruiterID = $_SESSION['MM_Username'];
    mysql_select_db($database_laura, $laura);
    $query_rsRecruiterID = sprintf("SELECT RecruiterID FROM recruiters WHERE email = %s", GetSQLValueString($colname_rsRecruiterID, "text"));
    $rsRecruiterID = mysql_query($query_rsRecruiterID, $laura) or die(mysql_error());
    $row_rsRecruiterID = mysql_fetch_assoc($rsRecruiterID);
    $totalRows_rsRecruiterID = mysql_num_rows($rsRecruiterID);
    $colname_Recordset1 = "-1";
    if (isset($_GET['RecruiterID'])) {
      $colname_Recordset1 = $_GET['RecruiterID'];
    mysql_select_db($database_laura, $laura);
    $query_Recordset1 = sprintf("SELECT Image FROM recruiters WHERE RecruiterID = %s", GetSQLValueString($colname_Recordset1, "int"));
    $Recordset1 = mysql_query($query_Recordset1, $laura) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    $query_rsJobs = "SELECT * FROM jobs";
    $rsJobs = mysql_query($query_rsJobs, $laura) or die(mysql_error());
    $row_rsJobs = mysql_fetch_assoc($rsJobs);
    $totalRows_rsJobs = mysql_num_rows($rsJobs);
    $colname_rsJobs = "-1";
    if (isset($_GET['Position'])) {
      $colname_rsJobs = $_GET['Position'];
    $varLocation_rsJobs = "-1";
    if (isset($_GET['Location'])) {
      $varLocation_rsJobs = $_GET['Location'];
    mysql_select_db($database_laura, $laura);
    $query_rsJobs = sprintf("SELECT `Position`, Nursery, Location, Salary, Email, ContactNo, JobDescription, JobID FROM jobs WHERE `Position` = %s AND jobs.Location = %s", GetSQLValueString($colname_rsJobs, "text"),GetSQLValueString($varLocation_rsJobs, "text"));
    $rsJobs = mysql_query($query_rsJobs, $laura) or die(mysql_error());
    $row_rsJobs = mysql_fetch_assoc($rsJobs);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Nursery and Childcare Jobs in the UK</title>
    <link href="../CSS/Global.css" rel="stylesheet" type="text/css" />
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <!-- google adwards -->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-6435415-4']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><!-- end .header --><a href="../index.php"><img src="../Images/Logo.png" width="900" height="200" alt="the Nursery Job Site" /></a></div>
      <div class="navbar">  <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="thenurseryjobsite.php">About the Nursery Job Site</a>      </li>
          <li><a href="#" class="MenuBarItemSubmenu">Recruiters</a>
            <ul>
              <li><a href="Recruiterarea/recruiterbenefits.php">Benefits</a></li>
              <li><a href="Recruiterarea/recruiterfees.php">Fees</a></li>
              <li><a href="Recruiterarea/reclogin.php">Login</a></li>
              <li><a href="Recruiterarea/recreg.php">Register</a></li>
            </ul>
          </li>
          <li><a class="MenuBarItemSubmenu" href="#">Jobseekers</a>
            <ul>
              <li><a href="Jobseekerarea/jobseekerbenefits.php">Benefits</a>          </li>
              <li><a href="Jobseekerarea/jslogin.php">Login</a></li>
              <li><a href="Jobseekerarea/jobseekerreg1.php">Register</a></li>
            </ul>
          </li>
          <li><a href="contactus.php">Contact Us</a></li>
        </ul> </div> <!--end navbar div -->
      <div class="sidebar1">
        <p> </p>
        <div class="recruitsidebar">
          <ul id="MenuBar2" class="MenuBarVertical">
            <li><a href="postajob.php">Post a Job</a></li>
            <li><a href="recAccdetails.php?RecruiterID=<?php echo $row_rsRecruiterID['RecruiterID']; ?>">My Details </a></li>
            <li><a href="recruiterjobs1.php">My Jobs</a></li>
            <li><a href="Saferrecruitment.php">Safer Recruitment</a></li>
            <li><a href="Interview1.php" class="MenuBarItemSubmenu">Interviewing Staff</a>
              <ul>
                <li><a href="recInterviewquestions.php">Nursery Staff Interview Questions</a></li>
              </ul>
            </li>
            <li><a href="Nurseryjobsdescriptions.php">Nursery Job Descriptions</a></li>
            <li><a href="recruiterarea.php">Recruiter Home</a></li>
    <li><a href="<?php echo $logoutAction ?>">Log Out</a></li>
          </ul>
          <p> </p>
        </div>
    </div>
      <div class="content">
        <h1> </h1>
    <div class="detailheading" id="detailheading">
          <h1> </h1>
          <table width="564" border="0" align="center" cellpadding="3" cellspacing="3" id="headingtable">
            <tr>
              <td width="89" height="44" align="center" class="headertext"><h1>Nursery:</h1></td>
              <td width="283" class="headertext"><?php echo $row_rsDetails['Nursery']; ?></td>
              <td width="162" rowspan="2"><img src="<?php echo $row_Recordset1['Image']; ?>" alt="" name="nurserylogo" align="right" id="nurserylogo" /></td>
            </tr>
            <tr align="left" class="headertext">
              <td width="89" height="44" align="center"><h1 class="headertext">Job Title:</h1></td>
              <td align="left"><?php echo $row_rsDetails['jobtitle']; ?></td>
            </tr>
          </table>
          <p> </p>
        </div>
        <table width="568" border="0" align="center" cellpadding="3" cellspacing="3" class="detail" id="detailtable">
          <tr>
            <td width="162" scope="col">Job Title</td>
            <td width="381" scope="col"><?php echo $row_rsDetails['jobtitle']; ?></td>
          </tr>
          <tr>
            <td>Nursery</td>
            <td><?php echo $row_rsDetails['Nursery']; ?></td>
          </tr>
          <tr>
            <td>Branch Name/Location</td>
            <td><?php echo $row_rsDetails['branchlocation']; ?></td>
          </tr>
          <tr>
            <td>Location</td>
            <td><?php echo $row_rsDetails['Location']; ?>,<?php echo $row_rsDetails['town']; ?></td>
          </tr>
          <tr>
            <td valign="top">Job Description</td>
            <td><p> </p>
              <p><?php echo $row_rsDetails['JobDescription']; ?></p>
            <p> </p></td>
          </tr>
          <tr>
            <td>Qualifications Required</td>
            <td><?php echo $row_rsDetails['qualifications']; ?></td>
          </tr>
          <tr>
            <td>Employment Type</td>
            <td><?php echo $row_rsDetails['employmenttype']; ?></td>
          </tr>
          <tr>
            <td>Hours</td>
            <td><?php echo $row_rsDetails['Hours']; ?></td>
          </tr>
          <tr>
            <td>Salary</td>
            <td>£<?php echo $row_rsDetails['Salary']; ?></td>
          </tr>
          <tr>
            <td>Contact Number</td>
            <td><?php echo $row_rsDetails['ContactNo']; ?></td>
          </tr>
          <tr>
            <td>Email</td>
            <td><?php echo $row_rsDetails['Email']; ?></td>
          </tr>
          <tr>
            <td>Date Posted</td>
            <td><?php echo $row_rsDetails['dateposted']; ?></td>
          </tr>
          <tr>
            <td>Job ID</td>
            <td><?php echo $row_rsDetails['JobID']; ?></td>
          </tr>
        </table>
        <p><br />
        </p>
        <form id="recruiterjobsform" name="recruiterjobsform" method="post" action="recruiterjobs1.php">
          <input name="RecruiterIDjobs" type="hidden" id="RecruiterIDjobs" value="<?php echo $row_rsDetails['RecruiterID']; ?>" />
          <input type="submit" name="button" id="button" value="return to my jobs" />
        </form>
        <p> </p>
    <script type="text/javascript">
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
        </script><script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    <p> </p>
    </div>
      <div class="sidebar2">
        <h4> </h4>
        <!-- end .sidebar2 --></div>
      <div class="footer">
        <p><a href="../index.php">Home</a> | <a href="../contactus.php">Contact us</a> | <a href="../PrivacyPolicy.php">Privacy</a> | <a href="../termsandconditions.php">Terms of Business</a></p>
        <p>&copy; theNurseryJobSite.com 2011</p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsDetails);
    mysql_free_result($rsRecruiterID2);
    mysql_free_result($rsRecruiterID);
    mysql_free_result($Recordset1);
    ?>

  • How to import categories to my addressbook from a csv file?

    Hello, I have a few contact list (csv) i want to add in my thunderbird adressbook. tought, I can' t find a way to add the categories of my contacts when i import my list of contacts from a csv files to my thunderbird adressebook. As you can see in the image, in the Edit contact window there is a section named categories, and ussually you click that section and you decide whatever the contact is a friend, a parent etc. Well I want to import that information from a csv file already made and not setup up the categories from each contact one by one. Ok thank you very much!

    You need a vCard (.vcf) format, not .csv.  Were these exported from Outlook?

  • Is there a way to find and replace prices in an Indesign document from a CSV file?

    Is there a way to find and replace prices in an Indesign document from a CSV file. Currenty I have a catalog with codes and prices in tables. I need to find a way to look up the code (and new price) in the CSV file and overwrite the price in the current table with the new price. Does anyone know of a script to run this quickly?

    Hi,
    Try this
    1) with all the images showing, got to Find -> By caption or Note
    2) enter the caption you are looking for Image Description and click on OK
    It should display all the ones with that caption
    3) select a few images as a test
    4) go to Edit -> Add caption to selected items
    5) if you want to blank out the captions just check the box to replace the caption and click on ok
    6) You will need to confirm the blank captions
    You could use a similar procedure to change the caption to something else.
    Good luck
    Brian

  • How do I remove e-mail addresses from a csv file referencing a numbers doc

    Greetings! I hope someone out there can help me. I'm not exactly a genius when it comes to numbers...
    My Issue:
    I'm attempting to sending out a large e-mail blast via software called hoolie, it seems to be working amazingly well except for the fact that I've reached our Gmail accounts daily limit which I had zero idea existed.
    So about 1100 emails were sent and I still have to send about 1500 emails left to be sent. The software has no ability to resend to the failed e-mail addresses, so I'm left to my own devices...
    My Goal:
    I want to be able to subtract out the 1100 e-mail address from the csv file I have with all the addresses. Once I subtract out the e-mail addresses I can then resend the blast and throttle it so it takes a day or so and won't freak out google gmail...
    How can I accomplish this? I have the orginal CSV file with all the names and e-mail addresses and I have a new numbers doc in which I pasted the e-mails that were succesfully sent...
    Thoughts? Suggetsions?
    thanks in advance!

    Are you suggesting that it sent it to a random sample of the email addresses, that it did not start at the beginning and go row by row until it failed?  If that is the case, you can import the CSV file into Numbers, paste your list of sent addresses in another column or another table of that document, then use COUNTIF to look for duplicates.
    The best I can do is an example.Your table will no doubt be different so you'll have to rejigger the formula.
    Importing your CSV file will create column B
    Insert two new columns, C and D
    Use Copy/Paste to copy/paste your list of sent addresses from your other document into column D
    The formula in column C is =IF(COUNTIF(D,B)>0,"Was Sent","")
    Once it has done its thing, sort by column C to get all the "Was Sent" rows together. Delete them. Delete column C, Delete column D. Share as a CSV.

  • How to insert cropped images from photoshop without the white background

    Basically all I want to do is take a peice of writing from a video and insert it into another video. To do this I've took a screenshot of the font from the video and imported it into photoshop. I've then cropped/cut/took the the peice of writing I want, letter by letter. I want to be able to insert it into another video, but whenever I attempt to do it, I have the default white background of photoshop. Is there anyway to insert an image from photoshop, without taking the background with it, or even insert a layer from photoshop straight into final cut pro? Sorry if this is confusing.

    I don't think so. I cropped the letters, put them each an individual file, removed the background, saved them as a TIF then tried to import them onto Final Cut Pro, but a white background still appeared in the TIF file. Basically I just want to make the background transparent I believe.

  • ODI Error when Loading data from a .csv file to Planning

    Hello,
    I am trying to load data from a csv file to planning using ODI 10.1.3.6 and I am facing this particular error. I am using staging area as Sunopsis memory engine.
    7000 : null : java.sql.SQLException: Invalid COL ALIAS "DEFAULT C12_ALIAS__DEFAULT" for column "ALIAS:"
    java.sql.SQLException: Invalid COL ALIAS "DEFAULT C12_ALIAS__DEFAULT" for column "ALIAS:"
         at com.sunopsis.jdbc.driver.file.bb.b(bb.java)
         at com.sunopsis.jdbc.driver.file.bb.a(bb.java)
         at com.sunopsis.jdbc.driver.file.w.b(w.java)
         at com.sunopsis.jdbc.driver.file.w.executeQuery(w.java)
         at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.g.A(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Code from Operator:
    select     Account     C1_ACCOUNT,
         Parent     C2_PARENT,
         Alias: Default     C12_ALIAS__DEFAULT,
         Data Storage     C3_DATA_STORAGE,
         Two Pass Calculation     C9_TWO_PASS_CALCULATION,
         Account Type     C6_ACCOUNT_TYPE,
         Time Balance     C14_TIME_BALANCE,
         Data Type     C5_DATA_TYPE,
         Variance Reporting     C10_VARIANCE_REPORTING,
         Source Plan Type     C13_SOURCE_PLAN_TYPE,
         Plan Type (FinStmt)     C7_PLAN_TYPE__FINSTMT_,
         Aggregation (FinStmt)     C8_AGGREGATION__FINSTMT_,
         Plan Type (WFP)     C15_PLAN_TYPE__WFP_,
         Aggregation (WFP)     C4_AGGREGATION__WFP_,
         Formula     C11_FORMULA
    from      TABLE
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=Account.csvSNP$CRLOAD_FILE=Y:/1 Metadata/Account//Account.csvSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=2CSNP$CRFILE_SEP_LINE=0D0ASNP$CRFILE_FIRST_ROW=1SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=AccountSNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=ParentSNP$CRTYPE_NAME=STRINGSNP$CRORDER=2SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Alias: DefaultSNP$CRTYPE_NAME=STRINGSNP$CRORDER=3SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Data StorageSNP$CRTYPE_NAME=STRINGSNP$CRORDER=4SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Two Pass CalculationSNP$CRTYPE_NAME=STRINGSNP$CRORDER=5SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Account TypeSNP$CRTYPE_NAME=STRINGSNP$CRORDER=6SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Time BalanceSNP$CRTYPE_NAME=STRINGSNP$CRORDER=7SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Data TypeSNP$CRTYPE_NAME=STRINGSNP$CRORDER=8SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Variance ReportingSNP$CRTYPE_NAME=STRINGSNP$CRORDER=9SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Source Plan TypeSNP$CRTYPE_NAME=STRINGSNP$CRORDER=10SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Plan Type (FinStmt)SNP$CRTYPE_NAME=STRINGSNP$CRORDER=11SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Aggregation (FinStmt)SNP$CRTYPE_NAME=STRINGSNP$CRORDER=12SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Plan Type (WFP)SNP$CRTYPE_NAME=STRINGSNP$CRORDER=13SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=Aggregation (WFP)SNP$CRTYPE_NAME=STRINGSNP$CRORDER=14SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=FormulaSNP$CRTYPE_NAME=STRINGSNP$CRORDER=15SNP$CRLENGTH=150SNP$CRPRECISION=150SNP$CR$$SNPS_END_KEY*/
    insert into "C$_0Account"
         C1_ACCOUNT,
         C2_PARENT,
         C12_ALIAS__DEFAULT,
         C3_DATA_STORAGE,
         C9_TWO_PASS_CALCULATION,
         C6_ACCOUNT_TYPE,
         C14_TIME_BALANCE,
         C5_DATA_TYPE,
         C10_VARIANCE_REPORTING,
         C13_SOURCE_PLAN_TYPE,
         C7_PLAN_TYPE__FINSTMT_,
         C8_AGGREGATION__FINSTMT_,
         C15_PLAN_TYPE__WFP_,
         C4_AGGREGATION__WFP_,
         C11_FORMULA
    values
         :C1_ACCOUNT,
         :C2_PARENT,
         :C12_ALIAS__DEFAULT,
         :C3_DATA_STORAGE,
         :C9_TWO_PASS_CALCULATION,
         :C6_ACCOUNT_TYPE,
         :C14_TIME_BALANCE,
         :C5_DATA_TYPE,
         :C10_VARIANCE_REPORTING,
         :C13_SOURCE_PLAN_TYPE,
         :C7_PLAN_TYPE__FINSTMT_,
         :C8_AGGREGATION__FINSTMT_,
         :C15_PLAN_TYPE__WFP_,
         :C4_AGGREGATION__WFP_,
         :C11_FORMULA
    Thanks in advance!

    Right-clicking "data" on the model tab can you see the data?
    In your code there's written:
    P$CRLOAD_FILE=Y:/1 Metadata/Account//Account.csv
    Is it right the double slash before the file name?

  • Need to take a value from the csv file and query in a OAF page.

    Hello,
    I have a requirement to take the list of employee numbers in a csv file and display its corresponding job on the page.
    I have created a item 'MessageFileupload' where the user will upload the csv file containing the employee number and a Button 'Display Jobs' which will display the corresponding jobs on the page.
    Any idea how to take the values from the csv file and query it?
    Regards,
    den123.

    Hi ,
    Check
    http://oraclearea51.com/contribute/post-a-blog-article/csv-file-upload-for-oa-framework.html
    http://www.roseindia.net/jsp/upload-insert-csv.shtml
    Below code works from above blogs.
    package xx.oracle.apps.pa.Lab.webui;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    // import java.io.*;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.jbo.domain.BlobDomain;
    import oracle.cabo.ui.data.DataObject;
    import oracle.jbo.Row;
    * Controller for ...
    public class deptCsvUploadCO extends OAControllerImpl
      public static final String RCS_ID="$Header$";
      public static final boolean RCS_ID_RECORDED =
            VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
       * Layout and page setup logic for a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
       * Procedure to handle form submissions for form elements in
       * a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        // Code Addition Started for CSV upload
        OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
        OAViewObjectImpl vo = (OAViewObjectImpl) am.findViewObject("deptCsvVO1");
          //if ("GoBtn".equals(pageContext.getParameter(EVENT_PARAM)))
           if (pageContext.getParameter("GoBtn") != null)
          System.out.println("Button Pressed");
              DataObject fileUploadData =(DataObject)pageContext.getNamedDataObject("FileUploadItem");
              String fileName = null;
              String contentType = null;
              Long fileSize = null;
              Integer fileType = new Integer(6);
              BlobDomain uploadedByteStream = null;
              BufferedReader in = null;
                      try
                      fileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
                      contentType =(String)fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
                      uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
                      in = new BufferedReader(new InputStreamReader(uploadedByteStream.getBinaryStream()));
                      fileSize = new Long(uploadedByteStream.getLength());
                      System.out.println("fileSize"+fileSize);
                      catch(NullPointerException ex)
                      throw new OAException("Please Select a File to Upload", OAException.ERROR);
                      try{ 
                      //Open the CSV file for reading 
                      String lineReader=""; 
                      long t =0;
                      String[] linetext; 
                      while (((lineReader = in.readLine()) !=null) )
                      //Split the deliminated data and
                      if (lineReader.trim().length()>0)
                      System.out.println("lineReader"+lineReader.length());
                      linetext = lineReader.split(","); 
                      t++;
                      //Print the current line being
                      if (!vo.isPreparedForExecution())
                              vo.setMaxFetchSize(0);
                              vo.executeQuery();
                        System.out.println("Trimmed "+  linetext[1].replace("\"", ""));
                      Row row = vo.createRow();
                      row.setAttribute("Deptno", linetext[0].trim());
                      row.setAttribute("Dname",linetext[1].trim().replace("\"", ""));
                      row.setAttribute("Loc",linetext[2].trim().replace("\"", ""));
                      //row.setAttribute("Column4", linetext[3].trim());
                      vo.last();
                      vo.next();
                      vo.insertRow(row);
                      catch (IOException e)
                            throw new OAException(e.getMessage(),OAException.ERROR);
              //else if (pageContext.getParameter("Upload") != null)
              am.getTransaction().commit();
              throw new OAException("Uploaded SuccessFully",OAException.CONFIRMATION);     
    }Thanks,
    Jit

  • Need help in loading data from a csv file to a table in Oracle DB

    Hi,
    I am using sqlplus as a client to connect to the server.
    I am trying to load data from a csv file from a client to a table in Oracle DB server.
    I am trying to use the below command
    " LOAD DATA INFILE 'test.csv' INTO TABLE testTable FIELDS TERMINATED BY ',' (test1,test2,testc3,testc4); "
    But, I am encountered with the following error
    "SP2-0042: unknown command "load data" - rest of line ignored."
    Thanks in advance.
    SB

    Hey Frostmann,
    That was a nice post....
    I changed my mind to use an 'Insert into' statement from a shell script.
    I created a DB table named test and I tried using the below shell script to insert a row in the table.
    sqlplus test/test@test <<ENDOFSQL
    INSERT INTO test VALUES('test1',123,'test2','test3');
    exit
    ENDOFSQL
    A row is succesfully inserted into the table when I run the script manually, but it does not insert rows when a cron job is scheduled.
    Could you please help me with this?
    Thanks in advance.
    SB

  • Is there a way to select a certain box of elements from a csv file and read that into LabVIEW?

    Hello all, I was wondering if there was a way to select only a certain "box" of elements from a .csv file in LabVIEW? I have LabVIEW 2011 and my main goal is to take two arrays and graph them against each other. I can import the .csv file just fine and separate each row and each column to be its own, but say I have an 8X8 but want to graph the middle 4X5 or something like that. Is there any way to extract an array without starting at the beginning and without ending at the end? Thank you in advance.
    Solved!
    Go to Solution.

    Hi Szklanam,
    as a CSV file is just a TXT file with a different suffix you can read a certain number of lines of that file. So you can limit the number of rows in your resultung array. To limit the number of columns you still have to use ArraySubset, so maybe it's a lot easier to read the full CSV file and pick the interesting spots with ArraySubset...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Reading and Sorting from a CSV file

    I have an assignment to read a shopping list from a CSV file, sort the items and print or write the items to a text file. I have an idea though. I intend to use vectors to collect the items from the CSV file and then sort the list and write to a txt file. Someone tell me whether this is a right approach or suggest simpler approach. thank you.
    Derry

    Sounds reasonable.
    Rather than Vector, though, I'd use ArrayList (a very near replacement for Vector) or possibly LinkedList or even Set or Map. (Vector is a legacy class, kept around for backward compatibility.)
    http://java.sun.com/docs/books/tutorial/collections/
    Make sure each element in the List corresponds to one row in the file. Those elements should be a class you define whose member variables correspond to the columns in the file. (So if the file has Last, First, Bday columns, your class would have lastName, firstName, and birthday fields.)
    Make your class Comparable, or implement a Comparator, to make sorting straightforward.
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Comparable.html
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Comparator.html

  • How can i import contacts from a csv file to "iCloud Contacts"?

    How can I import contacts from a csv file to "iCloud Contacts"?

    The only way I know of to import cells from a csv file is by creating a new file.  But then you can select the desired cells and copy them to the other file.  I just did it to be sure it works.
    1. Create the new spreadsheet file via the upload command.
    2. Select the cells (table) that you want to move to the other file and press command+C (copy).
    3. Close the new file and open the existing file.
    4. Select the top/right cell of the area to receive the copied "table" and press commant+V (paste).
    I hope this is what you're trying to do!

  • Figuring out how to extract images from a PDF file

    Hi,
    I'm trying to write a small app that extracts all images from a PDF file. I already wrote a nice parser and it works good but the only problem is that I can't quite figure out from the reference how to decode all images in a PDF file to normal files such as tiffs, jpegs, bmps etc. For now I'm focusing on XObject images and not dealing with inline images.
    From what I understand so far just by trying and looking at open sources I figured that if I see a XObject Image with a DCTDecode filter, taking the stream data without doing anything to it and saving it as a jpeg file works. But doing the same to FlateDecoded streams or CCITTFax didn't work.
    What is the right way to properly extract the images?

    In general you have to
    * decode the stream
    * extract the pixel data
    * use ColorSpace, BitsPerComponent, Decode and Width to unpack pixel
    values
    * reconstruct an image file format according to its specification
    There are no other shortcuts. The DCTDecode shortcut (which doesn't
    work for CMYK JPEG files) is just a piece of fantastic good luck.
    Aandi Inston

  • Import data from excel/csv file in web dynpro

    Hi All,
    I need to populate a WD table by first importing a excel/CSV file thru web dynpro screen and then reading thru the file.Am using FileUpload element from NW04s.
    How can I read/import data from excel / csv file in web dynpro table context?
    Any help is appreciated.
    Thanks a lot
    Aakash

    Hi,
    Here are the basic steps needed to read data from excel spreadsheet using the Java Excel API(jExcel API).
    jExcel API can read a spreadsheet from a file stored on the local file system or from some input stream, ideally the following should be the steps while reading:
    Create a workbook from a file on the local file system, as illustrated in the following code fragment:
              import java.io.File;
              import java.util.Date;
              import jxl.*;
             Workbook workbook = Workbook.getWorkbook(new File("test.xls"));
    On getting access to the worksheet, once can use the following code piece to access  individual sheets. These are zero indexed - the first sheet being 0, the  second sheet being 1, and so on. (You can also use the API to retrieve a sheet by name).
              Sheet sheet = workbook.getSheet(0);
    After getting the sheet, you can retrieve the cell's contents as a string by using the convenience method getContents(). In the example code below, A1 is a text cell, B2 is numerical value and C2 is a date. The contents of these cells may be accessed as follows
    Cell a1 = sheet.getCell(0,0);
    Cell b2 = sheet.getCell(1,1);
    Cell c2 = sheet.getCell(2,1);
    String a1 = a1.getContents();
    String b2 = b2.getContents();
    String c2 = c2.getContents();
    // perform operations on strings
    However in case we need to access the cell's contents as the exact data type ie. as a numerical value or as a date, then the retrieved Cell must be cast to the correct type and the appropriate methods called. The code piece given below illustrates how JExcelApi may be used to retrieve a genuine java double and java.util.Date object from an Excel spreadsheet. For completeness the label is also cast to it's correct type. The code snippet also illustrates how to verify that cell is of the expected type - this can be useful when performing validations on the spreadsheet for presence of correct datatypes in the spreadsheet.
      String a1 = null;
      Double b2 = 0;
      Date c2 = null;
                        Cell a1 = sheet.getCell(0,0);
                        Cell b2 = sheet.getCell(1,1);
                        Cell c2 = sheet.getCell(2,1);
                        if (a1.getType() == CellType.LABEL)
                           LabelCell lc = (LabelCell) a1;
                           stringa1 = lc.getString();
                         if (b2.getType() == CellType.NUMBER)
                           NumberCell nc = (NumberCell) b2;
                           numberb2 = nc.getValue();
                          if (c2.getType() == CellType.DATE)
                            DateCell dc = (DateCell) c2;
                            datec2 = dc.getDate();
                           // operate on dates and doubles
    It is recommended to, use the close()  method (as in the code piece below)   when you are done with processing all the cells.This frees up any allocated memory used when reading spreadsheets and is particularly important when reading large spreadsheets.              
              // Finished - close the workbook and free up memory
              workbook.close();
    The API class files are availble in the 'jxl.jar', which is available for download.
    Regards
    Raghu

  • How can I import data from a csv file into databse using utl_file?

    Hi,
    I have two machines (os is windows and database is oracle 10g) that are not connected to each other and both are having the same database schema but data is all different.
    Now on one machine, I want to take dump of all the tables into csv files. e.g. if my table name is test then the exported file is test.csv and if the table name is sample then csv file name is sample.csv and so on.
    Now I want to import the data from these csv files into the tables on second machine. if I've 50 such csv files, then data should be written to 50 tables.
    I am new to this. Could anyone please let me know how can I import data back into tables. i can't use sqlloader as I've to satisfy a few conditions while loading the data into tables. I am stuck and not able to proceed.
    Please let me know how can I do this.
    Thanks,
    Shilpi

    Why you want to export into .csv file.Why not export/import? What is your oracle version?
    Read http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php
    Regards
    Biju

Maybe you are looking for

  • Finding the full path of a process binary using /proc

    Hello, I have an application where I need to monitor whether a certain other process is running. I'm using the /proc filesystem and an ioctl call - namely, PIOCPSINFO - to fetch process information into a prpsinfo_t, then use either the pr_fname fiel

  • Download family member purchased music to my computer

    Hey, I've set up family sharing for my family's devices, me acting as the family organizer. Recently, my sister purchased a music album and I wanted to download this album. As for downloading it to my iPhone, everything was slick but when i tried to

  • Manual Production order restriction

    Hi, I want to restrict creation of manual production order. In standard setting, even after completing the sales order system is allowing to create production order against sales order through CO08. Is it possible to restrict? Regards / US

  • Compose Applicatio​n Icon brings up call options instead of texting options

    From the home screen on my BlackBerry Curve 8330, I open the "Compose" icon and select the contact (from my address book) that I want to text message.  Sometimes, a message box will come up asking "SMS text which number?", sometimes it will ask "Call

  • Ipod mini's shuffle not working

    whenever i put my ipod mini into shuffle it plays full cds not individual songs randomly. instead of having varying artists, it will play all of one artists songs then go onto another artist, rather than varying the choices. is there anything i can d