Viewing HTML stored in database in Dreamweaver

For the longest time, I have tried to figure out how to
access, view and edit html/php code stored in a database. I build
most of my sites using the Joomla CMS so all of the content is
stored within its database. When I am working on a page, I need to
open the site, go into HTML view, copy the code, paste it into DW,
make my changes and then copy it back to the CMS.
What I want to do is create a direct DB connection so that I
can open, edit and save the changes all from within DW. Is there
any way to do this?

The thing is I don't know if DW has the ability to extend in
that manner because it would affect the way in which DW connects to
the database which seems to me to be a bit above and beyond what
the extensions were designed to do. I personally have not designed
extensions, but maybe one of the PVII guys who hang around this
forum or even Murray might be able to shed some light on this
subject.
The reason I don't believe it can do this right now is
because it does not have the database editing technologies built
into it, although I do believe that might not be a bad feature to
recommend (
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
). I know it is too late for CS4 because that is already in the
beta stages and not too far from production from the looks of it
and what has been discussed on the CS4 forums. Probably a couple
small patches and it is ready to go. Although it is possible for
the CS5 release which should also see PHP4 support going
away.

Similar Messages

  • View file stored in Database in client machine

    Hi,
    I am using oralce forms Release 10.2.0.1.0 .
    In my application , files (.xls,.pdf,doc,gif etc) will be stored in Database table as BLOB. I have to add the provison to view the file in client browser.
    I tried using the webutil function to transfer file from DB to client and then from client to AS and showed the file using web.show_document. The issue with that solution is file keeps on created in AS server. is there a way i can programatically delete the file from AS, after showing using web.show-document.
    Or can anyone suggest any other solution for the same.
    Thanks in advance.

    Hello,
    There is no need to transfer the file on the AS if they are stored in the database.
    <p>Read this article.</p>
    Francois

  • Dealing with HTML stored in database

    I am trying to fetch data from one data source into XML, apply a stylesheet, and then save the resultant HTML into another table (using Java). The source data has some HTML tags embedded in it (which I want to maintain as tags), but during the processing these are being converted to text, as in:
    <P> gets transformed into &#60;P>
    and is therefore not rendered correctly.
    Can anyone help?

    The thing is I don't know if DW has the ability to extend in
    that manner because it would affect the way in which DW connects to
    the database which seems to me to be a bit above and beyond what
    the extensions were designed to do. I personally have not designed
    extensions, but maybe one of the PVII guys who hang around this
    forum or even Murray might be able to shed some light on this
    subject.
    The reason I don't believe it can do this right now is
    because it does not have the database editing technologies built
    into it, although I do believe that might not be a bad feature to
    recommend (
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    ). I know it is too late for CS4 because that is already in the
    beta stages and not too far from production from the looks of it
    and what has been discussed on the CS4 forums. Probably a couple
    small patches and it is ready to go. Although it is possible for
    the CS5 release which should also see PHP4 support going
    away.

  • Evaluation of html stored in the database

    Hello everyone, here is my story.
    I have html stored in the database that I am using in regions. The region is a pl/sql anonymous block with code similar to this.
    DECLARE
    testt varchar(30000);
    BEGIN
    SELECT Main_Page_Image_Zone INTO testt FROM htmltable where Main_Page_Image_Zone IS NOT NULL;
    htp.p(testt);
    END;
    It draws in and displays the html great. The only problem is apex isn't evaluating the html. I have an image that is drawing from #workspace_images#, but instead of translating this to something useful, I get a red x. It is trying to find the image as #workspace_images#...The html being drawn in isn't being evaluated like I want it to (I want it to translate #workspace_Images#). Any ideas how to evaluate this html?
    Here is what the image location is supposed to look like
    http://127.0.0.1:8080/apex/wwv_flow_file_mgr.get_file?p_security_group_id=6933527329162765&p_fname=fmw.gif
    Instead this shows up:
    http://127.0.0.1:8080/apex/f?p=104:12:617607226208594:::::#WORKSPACE_IMAGES#fmw.gif
    This is stored in the database (ignore the .)
    <.img src="#WORKSPACE_IMAGES#fmw.gif" width="697" height="439" border="0" usemap="#Map" />

    However
    Replacing occurences of '#WORKSPACE_IMAGES' with 'WORKSPACE_IMAGES' in the database
    and then applying the replace function on the column works.
    select replace(f1,'WORKSPACEIMAGES','&WORKSPACE_IMAGES.') into str from temp_tab;
    Again, don't know why !

  • Displaying html stored in a database table in a region

    Hi All,
    I would like to pass html to regions on the page which is stored in a database table.
    I have got this working for simple html (call a packaged function to get the html and then in a PL/SQL Anonymous Block htp.p(f_get_html(:P1_param1,'REGION1')); to display it within the region ) but what I would also like to take the html generated for charts/graphs etc out of the application and also put them into the database table so that the position on the page can be determined by database tables.(i.e. have a page with lots of regions and assign html to them at runtime). I am struggling with substituting all the necessary parameters into the HTML returned from the database and how it should be formatted.
    Any help appreciated and if I get any further I will update the post

    I have actually managed to achive this now. When I get chance I will post the code.
    The idea is that a page could have say 6 regions and depending on choices made (i.e. selected project or the individual user permissions) there are regions which you would want to display and regions you dont. Also, you may want to move regions around the page so that the important ones for that user or project etc. are at the top.
    You can then, on entering a page, query database tables to decide what is to be displayed in region1, region 2 etc. and then getting the html from the database for that region and displaying it.
    I have successfully done this now with embedded Oracle Reports showing graphs which look better than the SVG graphs and are more flexible.

  • Getting image stored in database !!

    Hey !!
    I'm really trying to solve so much problems i'm having with javafx !!
    So, like the title may suggest, i'm having problems as to get image from the database !!
    Everything seems fine but it tells me that there is "Exception while runing Application"
    here is the code !!
    @James D, i will come back bugging yu again to see how to use the stored images and display them inside the combobox and to render them ^^
    I haven't well understand how well as to use the enum struc in which yu declared the composed <Image,String> type ^^
    import java.awt.image.BufferedImage;
    import java.io.ByteArrayInputStream;
    import java.io.InputStream;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import javafx.application.Application;
    import javafx.event.Event;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.ComboBox;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    import javax.swing.JOptionPane;
    * @author Minedun6
    public class DynamicCustomComboBox extends Application {
        Connection c = connection.ConnecrDb();
       PreparedStatement pst = null;
       ResultSet rs = null;
       ComboBox box1;
       ImageView view;
        @Override
        public void start(Stage primaryStage) {
            box1 = new ComboBox();
            box1.setPrefSize(100, 25);
            box1.setOnShowing(new EventHandler() {
                @Override
                public void handle(Event t) {
                    box1.getItems().clear();
                    try {
                String sql = "select libelle_constr,img_constructeur from constructeurs where libelle_constr='Citroen';";
                pst = c.prepareStatement(sql);
                rs = pst.executeQuery();
               while(rs.next()){
                   box1.getItems().add(rs.getString("libelle_constr"));
                   InputStream input = new ByteArrayInputStream(rs.getBytes("img_constructeur"));
                   Image imge = new Image(input);
                   view.setImage(imge);
            } catch (Exception e) {
            JOptionPane.showMessageDialog(null, e);
            StackPane root = new StackPane();
            root.getChildren().addAll(box1);
            Scene scene = new Scene(root, 300, 250);
            primaryStage.setTitle("Hello World!");
            primaryStage.setScene(scene);
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);
    }

    In any real application, it's a mistake to mix your presentation (user interface) code with your persistance (database access) code.
    Why? You want maintainability, flexibility, and testability.
    Maintainability:
    Suppose you want to change the structure of your database. E.g. the database admin (which may be you, or someone else) determines that the database design you have is inefficient and needs to be changed. If your database code is scattered over the whole application, mixed in among your user interface code, tracking down what needs to be changed will be a nightmare. If all your database code is in a single class, or perhaps a set of classes in a single package, then the updates are localized and much easier to manage. Furthermore, you can build the new database access code on its own, test it out, and then when you are sure it works just switch your user interface code to use the new persistance layer instead of the old one. The same applies if you decide you're going to use a completely different technology to store the data; perhaps you want to use something like Hibernate instead of plain JDBC, or maybe you decide you want to make the data accessibile via a web service.
    Flexibility:
    What if you (or, more likely, your manager) decides they're going to change to a new user interface technology. Maybe they decide to switch to a web application (i.e. HTML-based) instead of a desktop application. You obviously need to rewrite the user interface code, but you should be able to keep all the database access code you've written. If your database access code is all jumbled up with the user interface code you're replacing, it's going to be way harder to reuse that code. If the two are separated out, you just build a new user interface in whatever new technology you're using, and access the same class(es) you used for your database access without touching them.
    Testability:
    This whole thread is actually a demo of how testability is much harder if you don't properly separate your code. You posted "getting image stored in database", thinking that was your problem. It wasn't; your problem was actually an error in the way you'd set up your JavaFX code. Because the two were completely mixed together, it was hard to know where the error was. The error you had was actually a really simple one; it would have been much easier to see if you had simpler, properly separated code; but because you didn't organize your code like that it took you days to figure out the problem. This was only a couple of dozen lines of code; imagine how this looks in a real application with hundreds or thousands of classes.
    The point is that decisions about how to access your data (standalone database, web service, or EJB?; plain JDBC, JPA, Hibernate, etc?) , and decisions about the presentation technology (desktop or web? JavaFX or Swing?, or Servlets/JSPs, JSF, Swing MVC, or any of a huge number of frameworks) are completely independent. You should be in a position to change those decisions - to redesign aspects of the application - with the least amount of effort possible. Failing to properly design things will make this much harder, or likely completely impossible.
    These are real concerns that affect every application that goes into production.
    Even if you're just making a small application, it will benefit you to set things up correctly from the outset.

  • Build html page with database images

    Hello,
    I have to build html pages in jsp that display images (JPEG, GIF) who are stored in database BLOB fields.
    Is anybody have sample to do this ?
    Thanks

    > Please help me... I need it!
    The answer that you do not want to hear is - spend some time
    learning HTML
    and CSS if you want to do things like this. It's true. DW
    will expect this
    knowledge on your part. Without it you will encounter
    continuous mysteries
    in your pages.
    > I have designed my page in Photoshop and have saved it
    as a HTML with
    > images.
    This is the wrong way to start. Here's a better plan....
    http://apptools.com/examples/pagelayout101.php
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Noreago1979" <[email protected]> wrote in
    message
    news:g1vhsa$lg6$[email protected]..
    > Is there a way to anchor a layer to a specific point on
    a HTML page?
    >
    > I have designed my page in Photoshop and have saved it
    as a HTML with
    > images.
    > I then opened it in Dreamweaver and alligned my designed
    page centre so
    > that it
    > is always center to the opened explorer window. The
    problem I am having is
    > that
    > I want to place my text layers in the document and have
    them anchor or
    > stay to
    > the exact spot i placed them on the page i designed and
    now have opened in
    > Dreamweaver. When i test it or open it up in the
    explorer page the text
    > layer
    > shifts differently than the the designed page i created
    in photoshop. I
    > would
    > like them to move together at the same rate.
    >
    > How can I make this work.... I have tried everything
    that i could think
    > of.
    >
    > Please help me... I need it!
    >
    > Thanks
    >

  • Display PDF Documents Stored In Database

    Hi
    I apologise that this question has been asked many times, but I just do not seem to be able to find answer to my question in many other posts over the years.
    We have pdf documents stored in database and wish for client to view from forms session.
    I am able to use webutil_file_transfer.DB_To_Client_With_Progress to transfer to client and open using client_host('cmd /c start '||TheFile);
    I am also able to view pdf documents stored on application server using web.show_document.
    What I would prefer to do is:
    1. Transfer file from database to application server (This is bit I cannot figure out)
    2. Display from application server using web.show_document
    3. Delete temporary file from application server (Also unsure how to do this)
    Our users have thin clients and so in many cases do not have access or unsure where can access to store temporary file if use transfer to client method. Wish to keep temporary file activity on application server.

    You can combine the methods in WEBUTIL. Check this Re: Forms 10G - Saving Blob on Application Server using Java.

  • Exporting data from a html format into database

    Hello:
    Maybe someone can help me. I wrote a Test Stand program and save the test results in the html format everyone liked be able to access the data thru a web page but now we want to save the data to a database witch I was able to do. I need import the files save in html to the database. Does any knows how to do this or at least convert into a .txt or .csv format

    Hey Toro,
    Unfortunately there is no utility that will parse your HTML format files into your DataBase. This is primarily because the report files don't have all the information that is stored in the database. The data stored in the database is quite complex. So you might have to resort to manually inserting the fields, although this process is quite tedious. Also you cannot really convert your HTML files into .csv file, just because once a report is created TestStand doesn't know what data fields of the HTML file is important or not.
    I'll place a product suggestion over to R&D to maybe look into creating a utility for our future releases.
    SijinK
    National Instruments

  • How to display the content from a file  stored in database

    when i am trying to display the content from a file which stored in database on oracle report 10g
    data are displaying as following. please help me to display the data in readable format
    <HTML LANG="en-US" DIR="LTR">
    <!-- Generated: 1/11/2006, postxslt.pl [1012] v1
    Source: amsug304286.xml
    File: amsug304286.htm
    Context: nil
    Tiers: ALWAYS
    Pretrans: YES
    Label: Release 12 -->
    <HEAD>
    <!-- $Header: amsug304286.htm 120.4 2006/11/01 20:57:29 appldev noship $ -->
    <!--BOLOC ug1_OMPO1010302_TTL--><TITLE>Product Overview (ORACLE MARKETING)</TITLE><!--EOLOC ug1_OMPO1010302_TTL-->
    <LINK REL="stylesheet" HREF="../fnd/iHelp.css">
    </HEAD>
    <BODY BGCOLOR="#F8F8F8">
    <A NAME="T304286"></A><A NAME="ProdOve"></A>
    <CENTER><H2><!--BOLOC ug1_OMPO1010302--><B>Product Overview</B><!--EOLOC ug1_OMPO1010302--></H2></CENTER>
    <p><!--BOLOC ug1_OMPO1010304-->Oracle Marketing drives profit, not just responses, by intelligently marketing to the total customer/prospect base. By leveraging a single repository of customer information, you can better target and personalize your campaigns, and refine them in real time with powerful analytical tools.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    ls.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006613--><B>Sales Alignment</B> - Oracle Marketing's leads management helps you compile and distribute viable leads so that sales professionals can follow up valuable opportunities and not just contact interactions. Additionally, support for distributing proposals and marketing material drive speedy and consistent setups and collaboration of best practices.<!--EOLOC ug1_OMPO1006613--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006614--><B>Marketing Insight</B> - While Oracle Marketing Home page reports and Daily Business Intelligence (DBI) for Marketing and Sales provide aggregated management level information in almost real time, operational metrics help in tracking the effectiveness of individual marketing activities.<!--EOLOC ug1_OMPO1006614--></p>
    </li></ul>
    </BODY>
    </HTML>
    <!-- Q6z5Ntkiuhw&JhsLdhtX.cg&Zp4q0b3A9f.&RQwJ4twK3pA (signum appsdocopis 1162406236 2673 Wed Nov 1 10:37:16 2006) -->

    Hi,
    you can try to use the:
    <b>ConsumerTreeListPreview</b>
    layout for KM navigation ivew (or customize to your own).
    This layout shows a folder tree on the left, a document list on the right. When you click on a document from the list it shows the contents of the file on the bottom of the iview.
    Hope this helps,
    Romano

  • Link to documents stored in database on flext front end

    Hi,
    I am a newbie to Flex.Can you please help me out with the
    procedure as how I can to provide a link on flex front end screen
    which when clicked opens either pdf's,ppt's,word docs from
    database. I am integrating the flex with spring and hibernate
    also.can you please tell me how can I connect(Flex to Java
    connection) to the document in the oracle database with the
    link.All the documents are stored in database.So for example if a
    user clicks on a link on flex frontend screen it needs to open a
    pdf file whihc is stored in database.So can you please post me the
    connection details as how flex calls java and inturn java calls
    backend to get the document from database.I am using flex,Spring
    and hibernate frameworks for the application..
    Thanks in Advance
    Chandu

    "chandu2406" <[email protected]> wrote in
    message
    news:gju0i3$ov0$[email protected]..
    > Hi,
    >
    > I am a newbie to Flex.Can you please help me out with
    the procedure as how
    > I
    > can to provide a link on flex front end screen which
    when clicked opens
    > either
    > pdf's,ppt's,word docs from database. I am integrating
    the flex with spring
    > and
    > hibernate also.can you please tell me how can I
    connect(Flex to Java
    > connection) to the document in the oracle database with
    the link.All the
    > documents are stored in database.So for example if a
    user clicks on a link
    > on
    > flex frontend screen it needs to open a pdf file whihc
    is stored in
    > database.So
    > can you please post me the connection details as how
    flex calls java and
    > inturn
    > java calls backend to get the document from database.I
    am using
    > flex,Spring and
    > hibernate frameworks for the application..
    Let's start with the basics:
    Do you already have an understanding of how you'd perform
    these steps if
    Flex were not involved (i.e. some sort of static or dynamic
    html page in the
    browser)?

  • Connection error mysql database in Dreamweaver

    the error message is - HTTP error code 404 file not found. here are some possible reasons
    screen shot - http://netwizlk.site50.net/images/DW-error.jpg
    1)there is no testing server running on the server machine.
    2)the testing server specified for this site does not map to the http://localhost/_mmServerScripts/MMhTTPDB.php verify that the URL prefix maps to the root of the site.
    guy pls help me to solve this problem. I tried several times to connect my mysql database with dreamweaver but ended up having this error I reinstalled dreamweaver cs4 and XAMPP still the error is not rectified my both remote and local files are stored in XAMPP server location called in c:\xampp\htdocs\htdocs\myweb
    anybody who could give me a speedy solution for this issue will be highly appreciated thanks alot guys.

    c:\xampp\htdocs\htdocs\myweb
    MM serverscripts must be at the root level of the virtual server, that is directly in the htdocs folder.
    Mylenium

  • Connecting database in dreamweaver to coldfusion

    i did access database. i created site with all the files and
    images. i did the connection from coldfusion to the database in
    dreamweaver through the "datasources " in the coldfusion
    administrator, but when i try to make the page appear by clicking
    view - live data i get this message: "dreamweaver couldn't convert
    properly the live page from the server". can someone help me ?

    here are the codes:
    <cfquery name="artwork" datasource="cftutorial">
    SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE,
    LARGEIMAGE, ISSOLD, MEDIATYPE
    FROM ARTISTS, ART, MEDIA
    WHERE ARTISTS.ARTISTID = ART.ARTISTID
    AND ART.MEDIAID = MEDIA.MEDIAID
    </cfquery>
    <cfdump var="#artwork#">
    and then:
    <table border="0" cellpadding="15" cellspacing="0"
    bgcolor="#FFFFFF">
    <cfoutput query="artwork">
    <cfif artwork.currentrow mod 3 eq 1>
    <tr>
    </cfif>
    <td valign="top" align="center" width="200">
    <img src="images/#artwork.largeImage#" width="200"
    height="200"><br>
    <strong>#artwork.artName#</strong><br>
    Artist: #artwork.firstName# #artwork.lastName#<br>
    Price: #artwork.price#<br>
    #artwork.mediaType# - #artwork.description#<br>
    <font color="##FF0000">#artwork.isSold#</font>
    </td>
    <cfif artwork.currentrow mod 3 eq 0>
    </tr>
    </cfif>
    </cfoutput>
    </table>
    thank you in advance

  • View in image from database

    hi will i be able to view image from my database using this class, am using jdeveloper 11g release 2
    package TaskFlowView;
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.sql.DataSource;
    public class ImageServlet extends HttpServlet {
        private static final String CONTENT_TYPE =
            "image/jpg; charset=utf-8";
         * @param config
         * @throws ServletException
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
         * @param request
         * @param response
         * @throws ServletException
         * @throws IOException
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException,
                                                               IOException {
            response.setContentType(CONTENT_TYPE);
            response.setContentType(CONTENT_TYPE);
            String detailDocumentId = request.getParameter("detail");
            String thumbnailDocumentId = request.getParameter("thumbnail");
            boolean thumbnail = true;
            String DocumentId = null;
            OutputStream os = response.getOutputStream();
            Connection conn = null;
            try {
                Context ctx = new InitialContext();
                DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/SMSDEV");
                conn = ds.getConnection();
                PreparedStatement statement = conn.prepareStatement(
                  "SELECT file_name, " +
                  "dlin.id, " +
                  "FROM  sms_document_links dlin " +
                  "sms_document_references dref" +
                  "WHERE dref.id = ?" +
                  "dref.dlin_id = dlin.id");
                if (detailDocumentId != null) {
                    DocumentId = detailDocumentId;
                    thumbnail = false;
                } else {
                    DocumentId = thumbnailDocumentId;
                statement.setString(1,(thumbnail ? "Y" : "N"));           
                statement.setInt(2, new Integer(DocumentId));
                ResultSet rs = statement.executeQuery();
                if (rs.next()) {
                    Blob blob = rs.getBlob("IMAGE");
                    BufferedInputStream in = new BufferedInputStream(blob.getBinaryStream());
                    int b; byte[] buffer = new byte[10240];
                    while ((b = in.read(buffer, 0, 10240)) != -1) { os.write(buffer, 0, b); }
                    os.close();
            } catch (Exception e){
                System.out.println(e);
            } finally {
                try{
                    if (conn != null){
                         conn.close();
                 } catch (SQLException sqle){
                     System.out.println("SQLException error");
        }Edited by: Tshifhiwa on 2012/05/29 1:52 PM
    Edited by: Tshifhiwa on 2012/05/29 1:56 PM

    hi this what i have done, am still having error with my iterator line= DCIteratorBinding lBinding = lBindingContainer.findIteratorBinding(sms4200ModuleDataControlIter),the error say type or variable sms4200ModuleDataControlIter not found but thats the name in my page defination,and is this the class i must write this method
    import com.sun.rowset.internal.Row;
    import com.sun.xml.internal.messaging.saaj.packaging.mime.internet.ContentType;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.sql.SQLException;
    import oracle.jbo.domain.BlobDomain;
    import oracle.jbo.domain.Timestamp;
    import oracle.jbo.server.AttributeDefImpl;
    import oracle.jbo.server.EntityImpl;
    import oracle.jbo.server.ViewRowImpl;
    import javax.faces.event.ValueChangeEvent;
    import org.apache.myfaces.trinidad.model.UploadedFile;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCIteratorBindingDef;
    import sms4200.common.SmsDocumentLinksViewRow;
    import sun.misc.IOUtils;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Wed May 30 13:12:49 CAT 2012
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class SmsDocumentLinksViewRowImpl extends ViewRowImpl implements SmsDocumentLinksViewRow {
        public static final int ENTITY_SMSDOCUMENTLINKS = 0;
        private static final String CONTENT_TYPE =
            "image/jpg; charset=utf-8";
            DocumentImage {
                public Object get(SmsDocumentLinksViewRowImpl obj) {
                    return obj.getDocumentImage();
                public void put(SmsDocumentLinksViewRowImpl obj, Object value) {
                    obj.setDocumentImage((BlobDomain)value);
      public static final int DOCUMENTIMAGE = AttributesEnum.DocumentImage.index();
        public BlobDomain getDocumentImage() {
            return (BlobDomain) getAttributeInternal(DOCUMENTIMAGE);
         * Sets <code>value</code> as attribute value for DOCUMENT_IMAGE using the alias name DocumentImage.
         * @param value value to set the DOCUMENT_IMAGE
        public void setDocumentImage(BlobDomain value) {
            setAttributeInternal(DOCUMENTIMAGE, value);
        private BlobDomain createBlobDomain(UploadedFile file)
            // init the internal variables
            InputStream in = null;
            BlobDomain blobDomain = null;
            OutputStream out = null;
            try
                // Get the input stream representing the data from the client
                in = file.getInputStream();
                // create the BlobDomain datatype to store the data in the db
                blobDomain = new BlobDomain();
                // get the outputStream for hte BlobDomain
                out = blobDomain.getBinaryOutputStream();
                // copy the input stream into the output stream
        39               * IOUtils is a class from the Apache Commons IO Package (http://www.apache.org/)
        40               * Here version 2.0.1 is used
        41               * please download it directly from http://projects.apache.org/projects/commons_io.html
        42               */
                IOUtils.copy(in, out);
            catch (IOException e)
                e.printStackTrace();
            catch (SQLException e)
                e.fillInStackTrace();
            // return the filled BlobDomain
            return blobDomain;
        public void uploadFileValueChangeEvent(ValueChangeEvent valueChangeEvent){
                    // The event give access to an Uploade dFile which contains data about the file and its content
                    // Get the original file name
                    UploadedFile file = (UploadedFile) valueChangeEvent.getNewValue();
                    // Get the original file name
                    String fileName = file.getFilename();
                    String contentType = CONTENT_TYPE.valueOf(fileName);
                        //get(fileName);
                    // get the current roew from the ImagesView2Iterator via the binding
                    DCBindingContainer lBindingContainer =
                        (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
                   // DCIteratorBinding lBinding = lBindingContainer.findIteratorBinding(&quot;sms4200ModuleDataControlIter&quot;);
                      DCIteratorBinding lBinding = lBindingContainer.findIteratorBinding(sms4200ModuleDataControlIter);
                    Row newRow = (Row)lBinding.getCurrentRow();
                    // set the file name
                    //newRow.setAttribute(&quot;DOCUMENTIMAGE&quot; fileName);
                    newRow.setColumnObject(DOCUMENTIMAGE, fileName);
                    // create the BlobDomain and set it into the row
                   // newRow.setAttribute(DOCUMENTIMAGE, createBlobDomain(file));
                    newRow.setColumnObject(DOCUMENTIMAGE, createBlobDomain(file));
                    // set the mime type
                    //newRow.setAttribute(&quot;ContentType&quot;, contentType);
                    newRow.setColumnObject(DOCUMENTIMAGE,contentType);                                                       
    my PageDef file is
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.2.60.81" id="sms4200PageDef"
                    Package="SmsFrontUI.pageDefs">
      <parameters/>
      <executables>
        <variableIterator id="variables"/>
        <iterator Binds="ViewObj1" RangeSize="25" DataControl="TaskFlowAppModuleDataControl" id="ViewObj1Iterator"/>
        <iterator Binds="sms4200_1" RangeSize="25" DataControl="TaskFlowAppModuleDataControl" id="sms4200_1Iterator"/>
        <iterator id="sms4200ModuleDataControlIter" DataControl="sms4200ModuleDataControl" RangeSize="25"
                  Binds="SmsDocumentLinksView1"/>
      </executables>
      <bindings>
        <attributeValues IterBinding="ViewObj1Iterator" id="IntegrationTypeName">
          <AttrNames>
            <Item Value="IntegrationTypeName"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="ViewObj1Iterator" id="Name">
          <AttrNames>
            <Item Value="Name"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="ViewObj1Iterator" id="LocalUpDirectory">
          <AttrNames>
            <Item Value="LocalUpDirectory"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="sms4200_1Iterator" id="IntegrationTypeName1">
          <AttrNames>
            <Item Value="IntegrationTypeName"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="sms4200_1Iterator" id="Name1">
          <AttrNames>
            <Item Value="Name"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="sms4200_1Iterator" id="LocalUpDirectory1">
          <AttrNames>
            <Item Value="LocalUpDirectory"/>
          </AttrNames>
        </attributeValues>
      </bindings>
    </pageDefinition>and my view is
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="SmsDocumentLinksView"
      Version="11.1.2.60.81"
      SelectList="SmsDocumentLinks.ID,
           SmsDocumentLinks.EDRMS_ID,
           SmsDocumentLinks.FILE_PLAN_NO,
           SmsDocumentLinks.DOCUMENT_NAME,
           SmsDocumentLinks.SCAN_DT,
           SmsDocumentLinks.DATE_CREATED,
           SmsDocumentLinks.DATE_MODIFIED,
           SmsDocumentLinks.MODIFIED_BY,
           SmsDocumentLinks.CREATED_BY,
           SmsDocumentLinks.DOCUMENT_IMAGE,
           SmsDocumentLinks.DITYP_ID,
           SmsDocumentLinks.DWSTA_CODE,
           SmsDocumentLinks.SOURCE_FILE_NAME"
      FromList="SMS_DOCUMENT_LINKS SmsDocumentLinks"
      BindingStyle="OracleName"
      CustomQuery="false"
      PageIterMode="Full"
      UseGlueCode="false"
      RowClass="sms4200.SmsDocumentLinksViewRowImpl"
      ComponentClass="sms4200.SmsDocumentLinksViewImpl"
      RowInterface="sms4200.common.SmsDocumentLinksViewRow"
      ClientRowProxyName="sms4200.client.SmsDocumentLinksViewRowClient">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access|Coll|Prog|VarAccess"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <EntityUsage
        Name="SmsDocumentLinks"
        Entity="sms4200.SmsDocumentLinks"/>
      <ViewAttribute
        Name="Id"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="Id"
        EntityUsage="SmsDocumentLinks"
        AliasName="ID">
        <TransientExpression><![CDATA[(new oracle.jbo.server.SequenceImpl("SMS_CAT_SEQ",adf.object.getDBTransaction())).getSequenceNumber()]]></TransientExpression>
      </ViewAttribute>
      <ViewAttribute
        Name="EdrmsId"
        PrecisionRule="true"
        EntityAttrName="EdrmsId"
        EntityUsage="SmsDocumentLinks"
        AliasName="EDRMS_ID"/>
      <ViewAttribute
        Name="FilePlanNo"
        PrecisionRule="true"
        EntityAttrName="FilePlanNo"
        EntityUsage="SmsDocumentLinks"
        AliasName="FILE_PLAN_NO"/>
      <ViewAttribute
        Name="DocumentName"
        PrecisionRule="true"
        EntityAttrName="DocumentName"
        EntityUsage="SmsDocumentLinks"
        AliasName="DOCUMENT_NAME"/>
      <ViewAttribute
        Name="ScanDt"
        PrecisionRule="true"
        EntityAttrName="ScanDt"
        EntityUsage="SmsDocumentLinks"
        AliasName="SCAN_DT"/>
      <ViewAttribute
        Name="DateCreated"
        PrecisionRule="true"
        EntityAttrName="DateCreated"
        EntityUsage="SmsDocumentLinks"
        AliasName="DATE_CREATED"/>
      <ViewAttribute
        Name="DateModified"
        PrecisionRule="true"
        EntityAttrName="DateModified"
        EntityUsage="SmsDocumentLinks"
        AliasName="DATE_MODIFIED"/>
      <ViewAttribute
        Name="ModifiedBy"
        PrecisionRule="true"
        EntityAttrName="ModifiedBy"
        EntityUsage="SmsDocumentLinks"
        AliasName="MODIFIED_BY"/>
      <ViewAttribute
        Name="CreatedBy"
        PrecisionRule="true"
        EntityAttrName="CreatedBy"
        EntityUsage="SmsDocumentLinks"
        AliasName="CREATED_BY"/>
      <ViewAttribute
        Name="DocumentImage"
        IsQueriable="false"
        PrecisionRule="true"
        EntityAttrName="DocumentImage"
        EntityUsage="SmsDocumentLinks"
        AliasName="DOCUMENT_IMAGE"/>
      <ViewAttribute
        Name="DitypId"
        PrecisionRule="true"
        EntityAttrName="DitypId"
        EntityUsage="SmsDocumentLinks"
        AliasName="DITYP_ID"/>
      <ViewAttribute
        Name="DwstaCode"
        PrecisionRule="true"
        EntityAttrName="DwstaCode"
        EntityUsage="SmsDocumentLinks"
        AliasName="DWSTA_CODE"/>
      <ViewAttribute
        Name="SourceFileName"
        PrecisionRule="true"
        EntityAttrName="SourceFileName"
        EntityUsage="SmsDocumentLinks"
        AliasName="SOURCE_FILE_NAME"/>
    </ViewObject>Edited by: Tshifhiwa on 2012/05/30 8:57 PM

  • Help re databases in Dreamweaver 8

    I am looking to set up a members database using Dreamweaver 8. I have MS Access. Is there an easy way of doing this and having a "login" facility based on membership category.  The website is stored locally and uploaded to remote server via FTP connection.

    Many web based membership systems run in PHP/MySQL on Linux servers (rather than MS Access which usually ties you to a Windows server).
    You can develop this locally using WAMP http://www.wampserver.com/en/ then upload your site to a PHP-enabled server.

Maybe you are looking for

  • Help with regular expression to not run shtml-hacktype on particular reqs

    Hi, Okay, back to 7.0 u2 not ignoring things it should. Our regular site has a lot of SHTML includes. Then we have the glassfish loadbalancer plugin configured for a back-end web application. The problem is, the application URLs end in .html and the

  • Office PDF Print and office PDF creator(adobe plugin) create different line thickness result

    Hi together, Office PDF Print and office abobe PDF creator(adobe plugin) create different result. It seems that Adobe PDf creater improves line thickness to 1pt instead of 0,3pt. Is there a setting to change to original 0,3 because this 0,3 are stand

  • Cannot get .swf file created in SwishMax to play on webpage

    I recently upgraded to Adobe Dreamweaver CS3 from Macromedia Dreamweaver. In updating a webpage today that involved a .swf movie I created in SwishMax, I find that the movie is "invisible" once I load the pages onto the server. I've tried several thi

  • How to design template by using subtemplate

    Hi, I want to display invoice number,customer name,invoice date in the header part and in line part I want to dispaly item name,item description,quantity,uom,extended amount.How can I achieve this.Which method should I use like subtemplate method or

  • Print problem in screen painter

    hello good souls, I need help to print my application screen but the print option is disabled and even i cannot export the data to pdf or word. please guide me as i never used printing option before.