How to insert a type of SI_StillImage in a column?

Hello

I'm trying to insert a column Still, however without success

my table

geicon2 (int id, name varchar2 (20), ordsys.ordimage, ordsys.)

My insert

Insert values (geicon2)

' 1', 'photo', ordsys.ordimage ("FILE", "DIR", 1 ".gif"), ordsys.SI_StillImage ("DIR")

)

What should I do now?

Hello

using the ORDSYS.SI_STILLIMAGE object type, you cannot simply specify a directory.

Your image should be, for example, available as a BLOB

(example of Oracle interMedia reference).

Don't forget to instantiate the SI_STILLIMAGE object using "new":

DECLARE

lobd BLOB;

son BFILE: = BFILENAME ('FILE_DIR', 'speaker.jpg');

BEGIN

DBMS_LOB. CREATETEMPORARY (lobd, TRUE);

DBMS_LOB. FileOpen (son, DBMS_LOB.file_readonly);

DBMS_LOB. LOADFROMFILE (lobd, son, DBMS_LOB. GETLENGTH (son));

DBMS_LOB. FileClose (son);

INSERT INTO PM.SI_MEDIA (product_id, product_photo)

New VALUES (1, ORDSYS.SI_StillImage (lobd));

DBMS_LOB. FREETEMPORARY (lobd);

COMMIT;

END;

/

Kind regards

WoG

Tags: Database

Similar Questions

  • How can insert different types of data in the table?

    Hello
    How can I insert different types of data in the table, (e.g., numeric and string) in the same index of a table.

    example:
    index0 car 10 green

    car red 11 index1
    Index2 car Blue 12

    where green car red and blue car as string and 10, 11 and 12 in the numeric form.
    then I extracted 10, 11 and 12 a digital table

    and, the green car, red car, blue car in a string array

    Help!

    Use 'Analysis of the chain' as in the picture as an attachment.  This will extract the number and color that you can add tables later.

  • How to insert data in the clob or xmltype column

    When I am inserting to clob or xml type column I get error error on line 2:
    ORA-01704: string literal too long


    INSERT INTO po_clob_tab
    values (100,' < TXLife >)
    < UserAuthRequest >
    UserId < UserLoginName > < / UserLoginName >
    < / UserAuthRequest >
    < TXLifeRequest >
    < TransRefGUID > 0099962A-BFF3-4761-4058-F683398D79F7 < / TransRefGUID >
    < TransType tc = "186" > OLI_TRANS_CHGPAR < / TransType >
    < TransExeDate > 2008 - 05 - 29 < / TransExeDate >
    < TransExeTime > 12:01:01 < / TransExeTime >
    < InquiryLevel tc = "3" > OLI_INQUIRY_OBJRELOBJ < / InquiryLevel >
    < InquiryView >
    < InquiryViewCode > CU186A < / InquiryViewCode >
    < / InquiryView >
    < ChangeSubType >
    < ChangeTC tc = "32" > update / add information about the customer object < / ChangeTC >
    <!-TranContentCode tc = 1 (Add)
    TC = 2 (Update)
    TC = 3 (remove)
    ->
    < TranContentCode tc = "1" > add < / TranContentCode >
    < / ChangeSubType >
    < OLifE >
    < SourceInfo >
    Profile Client < SourceInfoName > < / SourceInfoName >
    < / SourceInfo >
    < id of activity = "Act1" PartyID = "Party1" >
    < ActivityStatus tc = "2" > current < / ActivityStatus >
    < > 123456 UserCode < / UserCode >
    < opened > 2010 - 08 - 17 < / open >
    < ActivityCode > CP10001 < / ActivityCode >
    < setting >
    < description > LastScreenName < / Description >
    Create a CP < AttachmentData > < / AttachmentData >
    < AttachmentType tc = "2" > OLI_ATTACH_COMMENT < / AttachmentType >
    < AttachmentLocation tc = "1" > OLI_INLINE < / AttachmentLocation >
    < / fixing >
    < OLifEExtension VendorCode = ExtensionCode "05" = 'Activity' >
    < ActivityExtension >
    < SubActivityCode > CP20001 < / SubActivityCode >
    < / ActivityExtension >
    < / OLifEExtension >
    < / activity >
    < group id = "Grouping1" >
    < household >
    < EstIncome > 90000 < / EstIncome >
    < / household >
    < / group >
    < holding id = "Holding1" >
    Political < HoldingTypeCode tc = "2" > < / HoldingTypeCode >
    < purpose tc = "35" > Accumulation < / purpose >
    <>policy
    < tc ProductType = "1009800001" > AXA generic network Variable life product < / ProductType >
    Plus9 < ProductCode > < / ProductCode >
    < PlanName > accumulator Plus 9.0 < / PlanName >
    < pension >
    < QualPlanType tc = "45" > Qualified < / QualPlanType >
    < / pension >
    < ApplicationInfo >
    < ApplicationJurisdiction tc = "35" > New Jersey < / ApplicationJurisdiction >
    < OLifEExtension VendorCode = ExtensionCode "05" = "ApplicationInfo" >
    < ApplicationInfoExtension >
    < FinancialPlanIInd tc '0' = > false < / FinancialPlanIInd >
    < AgentVerifiesOwnersID tc = "1" > True < / AgentVerifiesOwnersID >
    < / ApplicationInfoExtension >
    < / OLifEExtension >
    < / ApplicationInfo >
    < FinancialActivity >
    < FinActivityType tc = "7" > payment < / FinActivityType >
    < FinActivityPct > 10 < / FinActivityPct >
    < payment >
    < SourceOfFundsTC = "18" tc > Don < / SourceOfFundsTC >
    < OLifEExtension VendorCode = ExtensionCode "05" = 'Payment' >
    < PaymentExtension >
    < FundingDisclosureDetails >
    < FundingDisclosureTC tc = "1009800001" > Cash < / FundingDisclosureTC >
    < / FundingDisclosureDetails >
    < / PaymentExtension >
    < / OLifEExtension >
    < / payment >
    < / FinancialActivity >
    < FinancialActivity >
    < FinActivityType tc = "7" > payment < / FinActivityType >
    < FinActivityPct > 10 < / FinActivityPct >
    < payment >
    < SourceOfFundsTC tc = "8" > personal loan < / SourceOfFundsTC >
    < OLifEExtension VendorCode = ExtensionCode "05" = 'Payment' >
    < PaymentExtension >
    < FundingDisclosureDetails >
    < FundingDisclosureTC tc = "1009800002" > loan < / FundingDisclosureTC >
    < / FundingDisclosureDetails >
    < / PaymentExtension >
    < / OLifEExtension >
    < / payment >
    < / FinancialActivity >
    < FinancialActivity >
    < FinActivityType tc = "7" > payment < / FinActivityType >
    < FinActivityPct > 10 < / FinActivityPct >
    < payment >
    < SourceOfFundsTC tc = "10" > back < / SourceOfFundsTC >
    < OLifEExtension VendorCode = ExtensionCode "05" = 'Payment' >
    < PaymentExtension >
    < FundingDisclosureDetails >
    < FundingDisclosureTC tc = "1009800003" > political related < / FundingDisclosureTC >
    < / FundingDisclosureDetails >
    < / PaymentExtension >
    < / OLifEExtension >
    < / payment >
    < / FinancialActivity >
    < FinancialActivity >
    < FinActivityType tc = "7" > payment < / FinActivityType >
    < FinActivityPct > 10 < / FinActivityPct >
    < payment >
    < OLifEExtension VendorCode = ExtensionCode "05" = 'Payment' >
    < PaymentExtension >
    < FundingDisclosureDetails >
    < FundingDisclosureTC tc = "1009800005" > CD, Stocks, 401(k) mutual funds shares, obligations, existing retirement Plan assets sale < / FundingDisclosureTC >
    < / FundingDisclosureDetails >
    < / PaymentExtension >
    < / OLifEExtension >
    < / payment >
    < / FinancialActivity >
    < FinancialActivity >
    < FinActivityType tc = "7" > payment < / FinActivityType >
    < FinActivityPct > 10 < / FinActivityPct >
    < payment >
    < OLifEExtension VendorCode = ExtensionCode "05" = 'Payment' >
    < PaymentExtension >
    < FundingDisclosureDetails >
    < FundingDisclosureTC tc = "1009800004" > sale of shares of mutual funds qualified or unqualified < / FundingDisclosureTC >
    < / FundingDisclosureDetails >
    < / PaymentExtension >
    < / OLifEExtension >
    < / payment >
    < / FinancialActivity >
    < FinancialActivity >
    < FinActivityType tc = "7" > payment < / FinActivityType >
    < FinActivityPct > 20 < / FinActivityPct >
    < payment >
    < OLifEExtension VendorCode = ExtensionCode "05" = 'Payment' >
    < PaymentExtension >
    < FundingDisclosureDetails >
    < FundingDisclosureTC tc = "1009800006" > active Advisory investment sales < / FundingDisclosureTC >
    < / FundingDisclosureDetails >
    < / PaymentExtension >
    < / OLifEExtension >
    < / payment >
    < / FinancialActivity >
    < FinancialActivity >
    < FinActivityType tc = "7" > payment < / FinActivityType >
    < FinActivityPct > 20 < / FinActivityPct >
    < payment >
    Car < SourceOfFundsTC tc = "1009800008" > < / SourceOfFundsTC >
    < OLifEExtension VendorCode = ExtensionCode "05" = 'Payment' >
    < PaymentExtension >
    < FundingDisclosureDetails >
    < FundingDisclosureTC tc '2147483647' = > other < / FundingDisclosureTC >
    < / FundingDisclosureDetails >
    < / PaymentExtension >
    < / OLifEExtension >
    < / payment >
    < / FinancialActivity >
    < / policy >
    < / support >
    < use id = "Party1" >
    < PartyTypeCode tc = "1" > person < / PartyTypeCode >
    < EstNetWorth > 250000 < / EstNetWorth >
    < LiquidNetWorthAmt > 120000 < / LiquidNetWorthAmt >
    < EstTotAssetsAmt > 400000 < / EstTotAssetsAmt >
    < person >
    John < FirstName > < / name >
    DOE < name > < / LastName >
    Married < MarStat tc = "1" > < / MarStat >
    < sex tc = "1" > male < / Type >
    < date of birth > 1965 - 05 - 07 < / date of birth >
    < EducationType tc = "3" > associate degree < / EducationType >
    < citizenship tc = "1" > US < / citizenship >
    < NetIncomeAmt > 70000 < / NetIncomeAmt >
    < DriversLicenseNum > D123456789 < / DriversLicenseNum >
    < DriversLicenseState tc = "35" > New Jersey < / DriversLicenseState >
    < ImmigrationStatus tc = "8" > citizen < / ImmigrationStatus >
    < DriversLicenseExpDate > 2012 - 05 - 25 < / DriversLicenseExpDate >
    < OLifEExtension VendorCode = ExtensionCode "05" = "No" >
    < PersonExtension >
    < NoDriversLicenseInd tc '0' = > false < / NoDriversLicenseInd >
    < / PersonExtension >
    < / OLifEExtension >
    < / person >
    < address >
    Lane Finn 125 < Line1 > < / Line1 >
    < City > North Brunswick < / City >
    < AddressStateTC tc = "35" > New Jersey < / AddressStateTC >
    < > 08902 zip < / Zip >
    < / address >
    < Phone >
    < PhoneTypeCode tc = "1" > home < / PhoneTypeCode >
    < DialNumber > 732456789 < / DialNumber >
    < / Phone >
    < Phone >
    < PhoneTypeCode tc = "2" > work < / PhoneTypeCode >
    < DialNumber > 732987654 < / DialNumber >
    < / Phone >
    < setting >
    < description > comments < / Description >
    < AttachmentData > it is collected for the customer comments < / AttachmentData >
    < AttachmentType tc = "2" > OLI_ATTACH_COMMENT < / AttachmentType >
    < AttachmentLocation tc = "1" > OLI_INLINE < / AttachmentLocation >
    < / fixing >
    < setting >
    < AttachmentSysKey > 1 < / AttachmentSysKey >
    important considerations remarks additional < description > < / Description >
    < AttachmentData > it is collected for the customer comments < / AttachmentData >
    < AttachmentType tc = "2" > OLI_ATTACH_COMMENT < / AttachmentType >
    < AttachmentLocation tc = "1" > OLI_INLINE < / AttachmentLocation >
    < / fixing >
    < setting >
    < AttachmentSysKey > 2 < / AttachmentSysKey >
    important considerations remarks additional < description > < / Description >
    < AttachmentData > it is collected for the customer comments < / AttachmentData >
    < AttachmentType tc = "2" > OLI_ATTACH_COMMENT < / AttachmentType >
    < AttachmentLocation tc = "1" > OLI_INLINE < / AttachmentLocation >
    < / fixing >
    < customer >
    < NumRelations > 1 < / NumRelations >
    < EstTaxBracket > 10 < / EstTaxBracket >
    < BrokerDealerInd tc = "1" > True < / BrokerDealerInd >
    < EstIncomeAmt > 90000 < / EstIncomeAmt >
    < PrimaryInvObjective tc = "8" > income and growth < / PrimaryInvObjective >
    < InvHorizonRangeMin > 5 < / InvHorizonRangeMin >
    < OLifEExtension VendorCode = "05" ExtensionCode = "Customer" >
    < ClientExtension >
    Moderate < RiskToleranceCode tc = "3" > < / RiskToleranceCode >
    < FINRAAffiliationName > John Doe < / FINRAAffiliationName >
    < degree >
    < RankCategory tc = "1009800001" > financial goal < / RankCategory >
    < TotalRankCode > 5 < / TotalRankCode >
    < RankCode PurposeID = "1009800016" > 6 < / RankCode >
    < RankCode PurposeID = "35" > 6 < / RankCode >
    < RankCode PurposeID = "2" > 6 < / RankCode >
    < RankCode PurposeID = "1009800013" > 6 < / RankCode >
    < RankCode PurposeID = "1009800014" > 6 < / RankCode >
    < RankCode PurposeID = "5" > 6 < / RankCode >
    < RankCode PurposeID = "1009800015" > 6 < / RankCode >
    < / standings >
    < / ClientExtension >
    < / OLifEExtension >
    < / customer >
    < EMailAddress >
    < EMailType tc = "1" > Business < / EMailType >
    < AddrLine > [email protected] < / AddrLine >
    < / EMailAddress >
    < risk >
    < HHFamilyInsurance >
    < HHFamilyInsuranceSysKey > 1 < / HHFamilyInsuranceSysKey >
    < DeclinedInd tc '0' = > false < / DeclinedInd >
    < LineOfBusiness tc = "1" > life < / LineOfBusiness >
    < / HHFamilyInsurance >
    < HHFamilyInsurance >
    < HHFamilyInsuranceSysKey > 2 < / HHFamilyInsuranceSysKey >
    < DeclinedInd tc '0' = > false < / DeclinedInd >
    < LineOfBusiness tc = "1" > life < / LineOfBusiness >
    < / HHFamilyInsurance >
    < HHFamilyInsurance >
    < HHFamilyInsuranceSysKey > 1 < / HHFamilyInsuranceSysKey >
    < DeclinedInd tc '0' = > false < / DeclinedInd >
    < LineOfBusiness tc = "3" > disability insurance < / LineOfBusiness >
    < / HHFamilyInsurance >
    < HHFamilyInsurance >
    < HHFamilyInsuranceSysKey > 1 < / HHFamilyInsuranceSysKey >
    < DeclinedInd tc '0' = > false < / DeclinedInd >
    < LineOfBusiness tc = "5" > insurance LTC < / LineOfBusiness >
    < / HHFamilyInsurance >
    < FinancialExperience >
    < InvestmentType tc = "7" > CD < / InvestmentType >
    < YearsOfInvestmentExperience > 1 < / YearsOfInvestmentExperience >
    < OLifEExtension VendorCode = "05" ExtensionCode = "FinancialExperience" >
    < FinancialExperienceExtension >
    < > 30000 AssetValue < / AssetValue >
    < / FinancialExperienceExtension >
    < / OLifEExtension >
    < / FinancialExperience >
    < FinancialExperience >
    < InvestmentType tc = "3" > inventory < / InvestmentType >
    < YearsOfInvestmentExperience > 1 < / YearsOfInvestmentExperience >
    < OLifEExtension VendorCode = "05" ExtensionCode = "FinancialExperience" >
    < FinancialExperienceExtension >
    < AssetValue > 5000 < / AssetValue >
    < / FinancialExperienceExtension >
    < / OLifEExtension >
    < / FinancialExperience >
    < FinancialExperience >
    < InvestmentType tc = "2" > link < / InvestmentType >
    < YearsOfInvestmentExperience > 6 < / YearsOfInvestmentExperience >
    < OLifEExtension VendorCode = "05" ExtensionCode = "FinancialExperience" >
    < FinancialExperienceExtension >
    < > 50000 AssetValue < / AssetValue >
    < / FinancialExperienceExtension >
    < / OLifEExtension >
    < / FinancialExperience >
    < FinancialExperience >
    < InvestmentType tc = "15" > variable annuities < / InvestmentType >
    < YearsOfInvestmentExperience > 4 < / YearsOfInvestmentExperience >
    < OLifEExtension VendorCode = "05" ExtensionCode = "FinancialExperience" >
    < FinancialExperienceExtension >
    < > 50000 AssetValue < / AssetValue >
    < / FinancialExperienceExtension >
    < / OLifEExtension >
    < / FinancialExperience >
    < FinancialExperience >
    < InvestmentType tc = "6" > mutual funds < / InvestmentType >
    < YearsOfInvestmentExperience > 0 < / YearsOfInvestmentExperience >
    < OLifEExtension VendorCode = "05" ExtensionCode = "FinancialExperience" >
    < FinancialExperienceExtension >
    < AssetValue > 0 < / AssetValue >
    < / FinancialExperienceExtension >
    < / OLifEExtension >
    < / FinancialExperience >
    < FinancialExperience >
    < InvestmentType tc = "1009800001" > Cash < / InvestmentType >
    < YearsOfInvestmentExperience > 20 < / YearsOfInvestmentExperience >
    < OLifEExtension VendorCode = "05" ExtensionCode = "FinancialExperience" >
    < FinancialExperienceExtension >
    < AssetValue > 100000 < / AssetValue >
    < / FinancialExperienceExtension >
    < / OLifEExtension >
    < / FinancialExperience >
    < FinancialExperience >
    < InvestmentType tc '2147483647' = > other < / InvestmentType >
    < YearsOfInvestmentExperience > 0 < / YearsOfInvestmentExperience >
    < OLifEExtension VendorCode = "05" ExtensionCode = "FinancialExperience" >
    < FinancialExperienceExtension >
    < AssetValue > 0 < / AssetValue >
    < / FinancialExperienceExtension >
    < / OLifEExtension >
    < / FinancialExperience >
    < / risk >
    < EmployerPartyID job = "Plaignante4" >
    Employees < OccupClass tc = "1009800001" > < / OccupClass >
    Solution Architect < occupation > < / Occupation >
    AXA < EmployerName > < / EmployerName >
    < YearsAtEmployment > 15 < / YearsAtEmployment >
    < / job >
    < GovtIDInfo >
    < GovtID > 123456789 < / GovtID >
    < GovtIDTC tc = "17" > Passport < / GovtIDTC >
    < GovtIDExpDate > 2015 - 08 - 24 < / GovtIDExpDate >
    < Nation tc = "1" > US < / Nation >
    < competence tc = "35" > New Jersey < / competence >
    < / GovtIDInfo >
    < / party >
    < use id = 'Party2' >
    < PartyTypeCode tc = "1" > person < / PartyTypeCode >
    < PartySysKey > ProfileID456 < / PartySysKey >
    < person >
    Jacqueline < FirstName > < / name >
    DOE < name > < / LastName >
    Married < MarStat tc = "1" > < / MarStat >
    < sex tc = "2" > female < / Type >
    < date of birth > 1975 - 05 - 07 < / date of birth >
    < EducationType tc = "3" > associate degree < / EducationType >
    < citizenship tc = "1" > US < / citizenship >
    < DriversLicenseNum > D987654321 < / DriversLicenseNum >
    < DriversLicenseState tc = "35" > New Jersey < / DriversLicenseState >
    < ImmigrationStatus tc = "8" > citizen < / ImmigrationStatus >
    < DriversLicenseExpDate > 2012 - 05 - 25 < / DriversLicenseExpDate >
    < OLifEExtension VendorCode = ExtensionCode "05" = "No" >
    < PersonExtension >
    < NoDriversLicenseInd tc '0' = > false < / NoDriversLicenseInd >
    < / PersonExtension >
    < / OLifEExtension >
    < / person >
    < address >
    Lane Finn 125 < Line1 > < / Line1 >
    < City > North Brunswick < / City >
    < AddressStateTC tc = "35" > New Jersey < / AddressStateTC >
    < > 08902 zip < / Zip >
    < / address >
    < Phone >
    < PhoneTypeCode tc = "1" > home < / PhoneTypeCode >
    < DialNumber > 732456789 < / DialNumber >
    < / Phone >
    < risk >
    < HHFamilyInsurance >
    < HHFamilyInsuranceSysKey > 1 < / HHFamilyInsuranceSysKey >
    < DeclinedInd tc '0' = > false < / DeclinedInd >
    < LineOfBusiness tc = "1" > life < / LineOfBusiness >
    < / HHFamilyInsurance >
    < / risk >
    < job >
    < OccupClass tc = "4" > unemployed < / OccupClass >
    < / job >
    < GovtIDInfo >
    < GovtID > 987654321 < / GovtID >
    < GovtIDTC tc = "17" > Passport < / GovtIDTC >
    < GovtIDExpDate > 2015 - 08 - 24 < / GovtIDExpDate >
    < Nation tc = "1" > US < / Nation >
    < competence tc = "35" > New Jersey < / competence >
    < / GovtIDInfo >
    < / party >
    < use id = "3" >
    < PartyTypeCode tc = "1" > person < / PartyTypeCode >
    < person >
    Joe < FirstName > < / name >
    DOE < name > < / LastName >
    <>15 years < / Age >
    < / person >
    < / party >
    < use id = "Plaignante4" >
    < person / >
    < address >
    < Line1 > 425 Washington Blvd. < / Line1 >
    Jersey < City > < / City >
    < AddressStateTC tc = "35" > New Jersey < / AddressStateTC >
    < > 07302 zip < / Zip >
    < / address >
    < / party >
    < Relationship OriginatingObjectID = "Grouping1" id = "Relation1" RelatedObjectID = "Party1" >
    < OriginatingObjectType tc = "16" > grouping < / OriginatingObjectType >
    < RelatedObjectType tc = "6" > Party < / RelatedObjectType >
    < RelationRoleCode tc = "30" > Member < / RelationRoleCode >
    < / relationship >
    < Relationship OriginatingObjectID = "Grouping1" id = "Relation2' RelatedObjectID = 'Party2' >
    < OriginatingObjectType tc = "16" > grouping < / OriginatingObjectType >
    < RelatedObjectType tc = "6" > Party < / RelatedObjectType >
    < RelationRoleCode tc = "30" > Member < / RelationRoleCode >
    < / relationship >
    < Relationship OriginatingObjectID = "Party1' id = 'Relation3' RelatedObjectID ="3">
    < OriginatingObjectType tc = "6" > Party < / OriginatingObjectType >
    < RelatedObjectType tc = "6" > Party < / RelatedObjectType >
    < RelationRoleCode tc = "40" > dependent < / RelationRoleCode >
    < / relationship >
    < Relationship OriginatingObjectID = "Holding1" id = "Relation4" RelatedObjectID = "Party1" >
    < OriginatingObjectType tc = "4" > Holding < / OriginatingObjectType >
    < RelatedObjectType tc = "6" > Party < / RelatedObjectType >
    < RelationRoleCode tc = "8" > owner < / RelationRoleCode >
    < / relationship >
    < Relationship OriginatingObjectID = "Holding1" id = "Relationship5" RelatedObjectID = 'Party2' >
    < OriginatingObjectType tc = "4" > Holding < / OriginatingObjectType >
    < RelatedObjectType tc = "6" > Party < / RelatedObjectType >
    < RelationRoleCode tc '184' = > co-owner < / RelationRoleCode >
    < / relationship >
    < Relationship OriginatingObjectID = "Form1" id = "Relation6" RelatedObjectID = "Party1" >
    < OriginatingObjectType tc = "101" > FormInstance < / OriginatingObjectType >
    < RelatedObjectType tc = "6" > Party < / RelatedObjectType >
    < RelationRoleCode tc = "107" > form for < / RelationRoleCode >
    < / relationship >
    < FormInstance id = "Form1" >
    < FormResponse >
    No. < ResponseText > < / ResponseText >
    < QuestionType tc = "1009800001" > the customer/owner with an interest in the account is either: (A) a military, Government or political officer in a country outside the United States or (B) closely associated with or an immediate family member of such official? < / QuestionType >
    < / FormResponse >
    < FormResponse >
    Yes < ResponseText > < / ResponseText >
    < QuestionType tc = "1009800005" > I am familiar with the products sold and determined the appropriate qualities. For deferred variable buys only: I have reasonable grounds to believe that the recommendations for this customer to purchase/Exchange an annuity is suitable on the basis of the existence was revealed by the customer about its investments, insurance products and financial situation and needs. < / QuestionType >
    < / FormResponse >
    < / FormInstance >
    < / OLifE >
    < / TXLifeRequest >
    (< / TXLife > ');
    /

    You must assign the XML (large data) to a variable before attempting to use it in an insert statement. An example is

    DECLARE
      l_xml   CLOB;
    BEGIN
      l_xml := '
    
    UserId
    ...
    ';
    
      INSERT INTO po_clob_tab
      values(100, l_xml);
    END;
    

    Store XML in a CLOB cannot provide the best performance for you, depending on how you plan to use these data. See Oracle XML DB: Choosing the best storage Option of your case (PDF) to http://www.oracle.com/technetwork/database/features/xmldb/index.html use XMLType. This info is especially applicable to 11g versions as well.

  • How to insert a pdf or jpeg image into a column of type blob of a table

    How to insert a pdf or jpeg image into a column of type blob of a table

    Hello
    Try this

    Loading an image into a BLOB column and showing through OAS
    -------------------------------------------------------------

    The steps are:

    Step 1.
    -------

    Create a table to store BLOBs:

    create BLOB table objects
    (id VARCHAR2 (255),)
    blob_col blob
    );

    Step 2.
    -------

    Create a logical directory in the database to the physical file system:

    create or replace the MY_FILES directory as "c:\images";

    Step 3.
    -------

    Create a procedure to load the BLOB from the file system by using the logic
    Directory. Gif 'aria.gif' must exist in c:\images.

    create or replace procedure insert_img as
    f_lob bfile.
    b_lob blob.
    Start
    insert into BLOB ("MyGif", empty_blob()) values
    return blob_col in b_lob;

    f_lob: = bfilename ("MY_FILES', 'aria.gif');
    DBMS_LOB. FileOpen (f_lob, dbms_lob.file_readonly);
    DBMS_LOB. LoadFromFile (b_lob, f_lob, dbms_lob.getlength (f_lob));
    DBMS_LOB. FileClose (f_lob);
    commit;
    end;
    /

    Step 4.
    -------

    Create a procedure that is called via Oracle Application Server to display the
    image.

    create or replace procedure get_img as
    vblob blob.
    raw buffer (32000);
    buffer_size integer: = 32000;
    offset of an integer: = 1;
    length of number;
    Start
    owa_util.mime_header('image/gif');
    Select blob_col from vblob of blobs where id = 'MyGif. "
    Length: = dbms_lob.getlength (vblob);
    While offset< length="">
    DBMS_LOB. Read (vblob, buffer_size, offset, buffer);
    HTP. PRN (utl_raw.cast_to_varchar2 (buffer));
    offset: = offset + buffer_size;
    end loop;
    exception
    while others then
    HTP.p (SQLERRM);
    end;
    /

    Step 5.
    -------

    Use the PL/SQL cartridge to call the get_img procedure

    OR

    Create this procedure in function and call it your PL/SQL code for
    correctly place the images on your HTML page through the PL/SQL Toolbox.

    from a html form

    1. create an HTML form where the image will be. You too
    need the file MIME type.
    2. create a procedure receives the form parameters. The file field will be a Varchar2
    parameter, because you receive the path of the image is not the image itself.
    3 insert the image file into the table by using 'Create a directory NAME as chemin_image' and
    Then use ' insert into the TABLE (row, BLOB_OBJECT, MIME_OBJECT) values (sequence.nextval, '.
    EMPTY_BLOB() 'GIF' or 'JPEG') BLOB_OBJECT, in the variable_blob, back
    variable_consecutive.
    4 load the file into the table using:
    DBMS_LOB. LoadFromFile (variable_blob, variable_file_name, dbms_lob.getlength (variable_file_name));
    DBMS_LOB. FileClose (variable_file_name);
    engage.

    Kind regards
    Simma...

  • How to insert or update in the data type date

    Hai All

    I have two table T1 and T2 from T1 to T2 I have to move data

    T1 structure code var, varchar of time that I said and T2 intimate outtime, intrinsically, all the introut are the date data type, so I need to pass the data to date the type varchar data


    How to insert or update varchar to date

    Concerning

    Srikkanth.M

    Hello

    SQL> create table tabDate
      2  (dt date);
    
    Table created.
    SQL> declare
      2  v_date varchar2(10):='10-03-2010';
      3  v_time varchar2(10):='0815';
      4   Begin
      5   insert into tabDate values(to_date(v_date||v_time,'dd-mon-yyyy hh24mi'));
      6   end;
      7   /
    declare
    *
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at line 5
    
    SQL>  declare
      2   v_date varchar2(10):='10-03-2010';
      3   v_time varchar2(10):='0815';
      4    Begin
      5    insert into tabDate values(to_date(v_date||v_time,'dd-mm-yyyy hh24mi'));
      6  end;
      7  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select to_char(dt,'dd-mm-yyyy hh24mi') from tabDate;
    
    TO_CHAR(DT,'DD-
    ---------------
    
    10-03-2010 0815
    

    Twinkle

  • I can't understand how to insert an internet link in my outgoing mail.

    I like Thunderbird but somehow I can not understand how to insert an internet link in my outgoing mail. But if my correspondent responds and sends my E-mail again to me, the link became operational.

    Links and email addresses are not active in the composition window. During that long and you type correctly, they will be active when sending. You can save the message in drafts and see it become active or send it to yourself as a test.

  • How to insert a script in an HTML document.

    How to insert a script in an HTML document.

    Abd there is always done on the fly, of course...

    e.g. Dynamic insertion of webworks

    var bbww = document.createElement("script");
    bbww.src='local:///chrome/webworks.js';
    bbww.type = 'text/javascript';
    document.getElementsByTagName('head')[0].appendChild(bbww); // Inject webworks
    
  • How to start stop type in the search box

    I want to stop "To start, type in the search box" and also find some br

    Sounds like something office search Bing would do?

    Please confirm.

    Take screenshots,
    Usually, you can press the SHIFT key (maybe the Alt key) or (FN key on your laptop) and press prtscrn.
    Open microsoft Paint, and then click Paste on the top left.
    Painting is located in the Accessories folder in all programs from the Start button.

    http://Windows.Microsoft.com/en-us/Windows7/using-paint

    Then click on the blue button on the file and click Save as, click jpeg file type and name the file.
    Upload to skydrive or photobucket in a public album and post a direct link to the file here.

    Or use the windows snipping tool,
    http://Windows.Microsoft.com/en-us/Windows-Vista/use-Snipping-Tool-to-capture-screen-shots
    Refer to this topic on how to make a public record and present screen shot here.
    http://answers.Microsoft.com/en-us/feedback/forum/suggest/how-to-insert-an-image-into-a-post-at-answers/bdae0306-c3cb-4d31-ace9-7281ea1a8a73

    You can also look at this for the new format in skydrive

    http://sdrv.Ms/RtThbH

  • How to insert the data from the table file?

    I need to know that how can I insert data into multiple columns by file. I can simply insert data into a table of columns, but could not find a way to put the data in the column all.

    My data in a file store
    ************************************************text.txt***************
    133, nanny, nagina, 14 mph, 45637, 9156729863

    **************************************************************my_data(table)**********
    try to insert into table below...

    Name, ID, last_name, add, PIN. Mob

    *********************************************

    Let me know if you need anything else... :))

    Hey nanny.

    In fact, in SQL Developer, you can open a connection to the target schema, right-click on the Tables node in the Navigator tree, select import the data, then use the data import wizard. It is extremely flexible. Looks like you have a file of comma-separated variables, so if you select Format: csv and import method: Insert it will probably work fine.

    To minimize the risk of errors during import, choose a limit value of preview so that the wizard can review the data type and the size of all columns in several lines of data as possible, and then examine the size/type of data for each column on the next page of the wizard and replace if necessary. For date columns, it is also important to choose the appropriate format mask.

    Hope this helps,
    Gary
    SQL development team

  • How to insert image in the region

    Hello!

    How to Insert Image in the region, as I upload image with the name "bar_color.jpg" in my workspace. And in the attributes of the region, I found
    1-static id
    2-region attributes
    View 3-region selector
    image 4-region
    The 5-image tag attributes
    Attributes of cells 6-region HTML table

    What to enter in these attributes.
    I entered bar_color.jpg in the column region's image, but the image does not appear

    Any help!

    Hello

    You can not simply use an img tag in the Source of the region ? :

    
    

    Otherwise, you can view the type of the Image to displayitem, if you want to display the image directly from the BLOB.

  • How to insert special characters

    Hey,.

    I can't understand how to insert special characters in a paragraph (the "Indent to Here" in this case).

    I tried text_frame.paragraphs [0] .silence += SpecialCharacters.INDENT_HERE_TAB;  but all I get is "1397319796" instead of the actual character.

    How to insert special characters instead of these numbers?

    Zoffix222 wrote:

    People who visit, but nobody don't know it?

    What, you mean that in the 5 minutes that you posted it responded to nobody? Shocking indeed.

    You already learned by yourself, 'content' is the wrong type of object stuff "SpecialCharacters' in. 'content' is the content of the text, translated in a simple string of Javascript. Only when you change a single 'character', you can use "SpecialCharacters", because at that time there Extendscript will see that you do not want to change the string "full"?

  • How to insert a Java object in MySQL using ColdFusion

    Hello world

    I looked everywhere on the Internet better that I can try to find the answer. Still no results yet. I found a code to see how to insert a pure Java MySQL using Java object. It goes like this: first you establish a connection with the MySQL database by using the Connection object. Then, you use PreparedStatement object to prepare the sql statement. Then, you call its executeUpdate() method. Fact! That's how it's done in Java. But I'm trying to see if I can do it directly in ColdFusion. Say that I already have a Java object, including implemens Serializable interface myJavaOjbect. I want to insert in the java_objects_t table, which contains a column of type BLOB, called my_java_data. Then, in ColdFusoin, I try to do this:

    < name cfquery = "insertJavaObject" dataSource = "#Application.ds #" >

    INSERT INTO java_objects_t (my_java_data) values (#myJavaObject #)

    < / cfquery >

    This query does not work because #myJavaObject # prove to be a String object, because it automatically calls the toString() method.

    Is it possible to insert a Java object into the table of MySQL database within the ColdFusion page? Or I have to use pure Java to do this?

    Thanks for the help, everyone!

    Use CFQueryParam, you should be already. Job done. POW pow pow.

  • How to insert the "html" text in the text block?

    Hello everyone!

    I have the question of the object. So, I want to insert the type html content in the block of text, something like this:

    Header text in italic and bold styles

    Some content in the normal template

    I know I should use

    TextFrame.Paragraphs.Add ('of content', null, null)

    and

    CharacterAttributes

    but don't know exactly how to write it.

    Please give me some examples?

    Thank you.

    need to make semi-auto, you start by creating two character styles in the user interface, we will call "bold" and "italic", then apply these styles to characters in the script

    var idoc = app.activeDocument;
    var itext = idoc.textFrames[0];
    
    var irangeItalics = itext.words[3];
    var irangeBold = itext.words[5];
    
    var boldstyle = idoc.characterStyles["bold"];
    var italicstyle = idoc.characterStyles["italics"];
    
    boldstyle.applyTo(irangeBold);
    italicstyle.applyTo(irangeItalics);
    
  • How to insert a page in a section, but NOT like the last page?

    How to insert a page in a section, but NOT like the last page?

    and how to integrate fonts in a pdf export?

    How does choose a 5.5 x 8.5 book format?

    Adding pages to get to the end.  You can, however, keep typing to the point you need to add a page. Once the page seems to make corrections.

  • How to insert special characters when I hit e-mail or Facebook?

    How to insert special characters when I hit e-mail or Facebook?

    See also:

Maybe you are looking for