How to display BITMAP at runtime
Hey all....
I am new to Photoshop SDK CS2 plugin programming. Can anyone help me to find out any code or any information to display bitmap image on plugin dialog using photoshop API and not the Windows API or MFC. I am just using a simple Dialog extending PIDialog Class and placed a picture control at design time using resource editor in windows (Visual Studio).
When I pass the resourceID of an Image in design time to picture control it displays the image and plugin is also working good but don't know how to pass it at runtime.
thanks
Hi,
Thanks for your reply. My Plugin is an Automation type plugin and is visible in File/Automate menu. I am just opening a 'File Browse Dialog Box' through 'Open File' Button on Plugin Dialog to select a image file (*.bmp) then I want to display that image in thumbnail in Picture Control box on plugin Dialog (just like the File/Automate/Picture Package... plugin already included in Photoshop cs2).
I have also downloaded the code given by you. again thanks for that. I am trying to understand the code. But I think it is too much for just displaying an image in picture control.
Thanks
Similar Messages
-
How to display bitmap in Flex App
Hi,
I want to alter pixel data in an image and then display the
altered version alongside original image. I am manipulating the
bitmapData from the original image and then creating a new Bitmap
from the altered bitmapData.
How can I add the new Bitmap to the display list? I am
getting a "not UIComponent" error message when I try to add it.
Casting it as a UIComponent also fails.
Or am I taking the wrong approach?
TIAHi,
Please try as show in the code below.
Hope this helps. -
How to display images at runtime in a web appplication
i use C#. and also, how do i get an image to be downloaded from mysql database at runtime upon request. here is a bit of my declaration code and conditional construct code
byte [] f = (byte[])(read["Passport"]); // this reads d byte data from the column passport in the database and assigns it to byte f.
if (f == null)
admin1pass.ImageUrl = null;
else
MemoryStream ms = new MemoryStream(f); // this holds the image gotten from the database
admin1pass.ImageUrl = System.Drawing.Image.FromStream(ms);
'now thats where i'm stuck. i hv used the
using System.Drawing;
using System.Data;
namespaces but none contains the class Image which is oftren what i use in windows form apps.They'll help you over here.
Microsoft C# ASP.Net forum
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
How to display menu at runtime?
Hi People,
Can u help me in knowing the use of menu concept.I have tried creating a menu.the menu is also created but only i can compile it.i couldnt run that menu form.what should i do for running menu form?.pls suggest me.
Thanks & Regards
VIDSHai,
In the Forms Property palette, set Menu Source = File (this will be default), and Menu Module = <menu_name> .
Then when you run the form, that menu will appear along with the form.
And you can change the menu of a form through coding also. for that write
REPLACE_MENU(:GLOBAL.Str_FrmMenu);Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks. -
How to display error message in Shopping Cart?
How to display error message in Shopping Cart and stop the shopping cart for further processing? I try MESSAGE w001(zshop) or MESSAGE e001(zshop). But it is causing run-time error.
Hi Paul,
In the DOC_CHECK or DOC_SAVE BADI, you have a global internal table named et_messages. The structure of this table is 'bbp_smessages_badi'. You can append your error message here by inputting the message type, ID and number. The message type is either 'E' for error or 'W' for warning and the number would depend on your message class(ID). You will be able to see the error message on top of the screen, can be a red or yellow highlight depending on your appended message. I don't think creating the error message via the MESSAGE syntax will be successful, maybe this is why you are getting a runtime error.
Regards,
Noel -
We are interested to know how/where to check query runtimes for any Query in SAP BW?
We are interested to know how/where to check query runtimes for any Query in SAP BW?
Is there any table or program to get the query run time details per query for a particular day.Hello Sravan,
Bex statics tables would be 'RSDDSTATHEADER','RSDDSTATINFO' & 'RSDDSTATEVDATA'. all these can found in one view 'RSDDSTAT_OLAP'.
above can give historical statistic.
For current Query statics : T-code RSRT, and select debug mode select display statistics and then execute.
Once you get the output press F3(one step back), there you can see statics of the query for that particular execution.
Thanks,
Mallikarjuna -
How to display Image by using Array?
Hi all, I know to how to display the image in MXML by using
AS 3.0
like this:
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100" height="80" borderStyle="solid">
<mx:Script>
<![CDATA[
[Embed(source="logo.gif")]
[Bindable]
public var imgCls:Class;
]]>
</mx:Script>
<mx:Image source="{imgCls}"/>
<!--OR-->
<mx:Image source="@Embed('assets/Nokia_6630.png')"/>
</mx:Application>
But the thing is I am building a list for display the images,
the values is come from the Array. I am trying a different way for
display it but no working, here is my code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
public var PICTURE_ARRAY:Array = [{label:"FileA",
icon:"@Embed('upload/myjpg.jpg')"},
{label:"FileC", icon:"@Embed('upload/myjpg.jpg')"},
{label:"FileB", icon:"@Embed('upload/myjpg.jpg')"}]
]]>
</mx:Script>
<mx:Tile id="pictureSelection" height="180" width="500"
borderStyle="solid">
<mx:Repeater id="picRP"
dataProvider="{PICTURE_ARRAY}">
<mx:VBox horizontalAlign="center" verticalAlign="middle"
verticalGap="0" borderStyle="none" width="100" height="100">
<mx:Image width="80" height="80"
source="{picRP.currentItem.icon}"
toolTip="{picRP.currentItem.icon}"/>
<!--
I also tryed this as well:
set the icon value as picture location like: "A.jpg" or
"B.jpg"
then
<mx:Image width="80" height="80"
source="@Embed('upload/{picRP.currentItem.icon}')" />
-->
<mx:Label text="{picRP.currentItem.label}" width="100"
textAlign="center"/>
</mx:VBox>
</mx:Repeater>
</mx:Tile>
</mx:Application>
Can anyone tell how to display the array value into Image
tag? ThanksIn your data you have this:
{label:"FileC", icon:"@Embed('upload/myjpg.jpg')"},
change it to this:
{label:"FileC", icon:"upload/myjpg.jpg"}, // this is just the
filename, not embedded
In your Repeater you have this Image tag:
<mx:Image width="80" height="80"
source="{picRP.currentItem.icon}"
toolTip="{picRP.currentItem.icon}"/>
which is fine, except for the toolTip. The toolTip uses a
string, not an image. If you want to show an image in the toolTip,
you'll need to write your own toolTip class.
Now the source property of the image will be given the URL to
the image which will then be requested from the server and
downloaded at runtime - it is not embedded.
If you need to embed the images, then your dataProvider
should have the variable name associated with the embedded
image. -
How to display sqlplus result in java?
I want to call sqlplus to execute some sql commands in java,but how can i print the result of sqlplus?
In java code ,i call sqlplus like:
Process p;
//execute the command
p = Runtime.getRuntime().exec(commandString);
//print return result of the command
InputStream inputStream = p.getInputStream();
How to display the execution result?
Edited by: Yi on Feb 26, 2012 11:41 PMYou can use ProcessBuilder. This code launches sql*plus and runs the script in the 'filename' variable. It displays the results in NetBeans console.
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.File;
import java.util.Map;
public class test1 {
public static void main (String args []) {
test_script();
public static void test_script () {
String fileName = "@test_table.sql";
String sqlPath = "E:\\";
String sqlCmd = "sqlplus";
String arg1 = "user/password@sid"; -- plug in your user, password and db name
String arg2 = fileName;
try {
String line;
ProcessBuilder pb = new ProcessBuilder(sqlCmd, arg1, arg2);
Map<String, String> env = pb.environment();
env.put("VAR1", arg1);
env.put("VAR2", arg2);
pb.directory(new File(sqlPath));
pb.redirectErrorStream(true);
Process p = pb.start();
BufferedReader bri = new BufferedReader
(new InputStreamReader(p.getInputStream()));
BufferedReader bre = new BufferedReader
(new InputStreamReader(p.getErrorStream()));
while ((line = bri.readLine()) != null) {
System.out.println(line);
bri.close();
while ((line = bre.readLine()) != null) {
System.out.println(line);
bre.close();
System.out.println("Done.");
catch (Exception err) {
err.printStackTrace();
}Here is the contents of the script placed at E:\\test_table.sql
Prompt drop TABLE ANOTHER_TEST;
DROP TABLE ANOTHER_TEST CASCADE CONSTRAINTS
Prompt Table ANOTHER_TEST;
CREATE TABLE ANOTHER_TEST
BATCH_SEQ NUMBER,
BATCH_GROUP_ID NUMBER,
STATUS_FLAG VARCHAR2(30 BYTE),
OBJ_BEING_PROCESSED VARCHAR2(80 BYTE),
BATCH_RUN_START_DTTM DATE,
BATCH_RUN_END_DTTM DATE,
CREATE_DTTM DATE,
CREATE_USER VARCHAR2(30 BYTE),
UPDATE_DTTM DATE,
UPDATE_USER VARCHAR2(30 BYTE)
LOGGING
NOCOMPRESS
NOCACHE
PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT )
MONITORING
COMMENT ON TABLE ANOTHER_TEST IS 'This is a test table.'
EXIT
/ -
How to display a page at 100% size?
When I put the zoom at 100%, the page appears much smaller than real. My monitor is a 24" 1920x1200 pixels with 0.27 mm pixel size (that is 94 dpi)
I suppose there has to be some way to tell illustrator my screen has 94 dpi for it to display pages at the correct size, but I can't locate it.
In Adobe Photoshop this option is at Preferences/Units and Rulers but where is in Illustrator?When you set in Photoshop "preferences/Units and rulers/Screen resolution" (I'm translating from my spanish menus, so it can be slightly different in english), you are telling the program what is the size of the pixels in your screen. This is enough for the computer to know how to display an image at the real size. If you make a DIN A4 document at 300 dpi in Photoshop, and you have set the mentioned parameter correctly, when you choose "View/Print size", you obtain in your screen a view of the document at the size it is supposed to be printed (so the document will occupy in the screen exactly 29,7 x 21 cm). Note this is different from 100% view (or "Real Pixels"). The fact this parameter is under "Preset resolutions for new documents" is a bit confusing, but it affects how you see any document at Print size, not only the new documents and is totally different from "Print resolution" (but depends on it). You can change the print resolution of any old document at "Image/Image Size..." but you can't change "its" screen resolution because this is a parameter of your computer screen, not of your document.
If you want to obtain the same effect in Microsoft Word, you have to go to "Control Panel/Screen/Configuration/Advanced Options/General/Dots per Inch Configuration" and this parameter will affect Microsoft Word. When you set the zoom lever at 100% in Word, again you will obtain in your screen a view of the document at the size it is supposed to be printed.
In Corel Draw, the corresponding parameter is at "Tools/Options/tool Box/Zoom Tool/Calibrate rulers...". There you can set the parameter numerically or you can use a set of on screen rulers to calibrate it. So when you set the zoom lever at 100%, again you will obtain in your screen a view of the document at the size it is supposed to be printed.
Notice you're working with vectors in Corel DRaw and Word (well, vector pictograms of letters or as we all know them: fonts) but you are working with bitmaps in Photoshop. That's why the 100% zoom is different in Photoshop than in the other programs (including Illustrator). and that's also why Photoshop has the Print size option. In the other programs, Print size and 100% would be the same but not in a bitmap program.
If you take a look in your monitor user manual you most likely will find a page of specifications where it tells you the dot size. This parameter can vary in CRT monitors that raster the image on a phosphor screen but is fixed in LCD monitors that have a fixed led matrix. If you don't have the manual or have a CRT monitor you can calculate the parameter by measuring the display size horizontally (from leftmost to rightmost displayed pixel) and dividing it by your screen resolution (the number of horizontal pixels).
In my User manual it says the dot size is 0.27 mm, that means 94 dpi (25.4 mm in an inch divided by 0.27). Or, in case I would have lost the manual, I would just measured the scren width and obtained 518.5 mm that divided by 1920 pixels horizontal resolution gives a result of 0.27 mm per pixel.
So, my question is ¿Is there some way of setting this parameter in Illustrator? -
How to setup Forms 9i runtime environment?
How to setup Forms 9i runtime environment?
I developed a test form and I am getting "Page cannot be displayed" error when I run the form.
Steps I followed to run the form...
1. Started OC4J Instance
< Dos Window opened and contained data " Oracle 9iAS (9.0.2.0.0) containers for J2EE initialized >
2. I Run my test form.
< In the IE browser got "Page cannot be displayed" error.
In DOS Window I got the following message ...
FormsServlet init():
ConfigFileName: null
testMode false >
Do I need to setup something else???
Please advise.My guess then would be that the problem is that you get:
ConfigFileName: null in the OC4J log window. This should actually point to a config file for the Forms server : formsweb.cfg.
Are you running the OC4J that came with Oracle9iDS?
What happens if you try the following URL:
http://127.0.0.1:8888/forms90/f90servlet
I don't know why it is not configured for you. might be worth a reinstall. -
Idoc-xi-file scenario. how to display file in html format
I am not sure whether this is a valid question.........but want to confirm as it was asked by somebody
In idoc-xi-file scenario....... how to display file in html format ??
Thanks in advance
KumarHi Vijayakumar,
Thanks for your reply !! You mean to say I got to use XSLT mapping and also .htm and .html extension together to produce the html file ?? or it is sufficient to use any one of them to produce the html file ??
Regards
Kumar -
In sap scripts how to display the driver program
Hi,
I Want to know the sap scripts How to display the output to driver programHi,
Go to NACE Transaction.
Select application for ex: if sales V1.
Click on output types.
Select the output type for ex : BA00
Double click on Processing routines.
There you can find the Driver Program name and Script/smart form name.
Reward if useful.
Thanks,
Raju -
How to display username in RTF BI publisher report?
Please advice how to display username in RTF BI publisher report?
May be this can be done via hidden parameter of BIP report which default value will be set up with macro like {$username$} (or smth like)?
Thanks in advance!Thanks. That worked. I was trying to get it as part of a multi-table query, aliasing dual. But that doesn't work in SQL Plus either so I guess I can't do that.
I was trying
select o.*, d.:xdo_user_name
from oblix_audit_events o, dual d
Before that I was trying
select
:xdo_user_name as USER_ID,
:xdo_user_roles as USER_ROLES,
:xdo_user_report_oracle_lang as REPORT_LANGUAGE,
:xdo_user_report_locale as REPORT_LOCALE,
:xdo_user_ui_oracle_lang as UI_LANGUAGE,
:xdo_user_ui_locale as UI_LOCALE
from dual
but I must have fat fingered something because that works now too. Thanks.
So if I need to do this in it's own query and I'm using an RTF template, how do I make that work?
If I have to do it with it's own -
How to display and edit the clob datatype column from Data base
Hi ,
I have a requiremsnt as below
1) One Table having some columns with CLOB data type along with varchar columns
2) need to display the data from DB in search screen and need to be edited clob column in edit screen
I created EO and VO with that Table and how to display the clob value into the input box for editing.
using Jdev 11.1.1.5.0 version.
Can you please help on this.
THanks & REgards,
MadhuHi,
If you are using an inputText component to display a Character Large Object (CLOB), then you will need to create a custom converter that converts the CLOB to a String.
For custom convertor refer below link,
http://docs.oracle.com/cd/E2438201/web.1112/e16181/af_validate.htm#BABGIEDH
(section7.4 Creating Custom JSF Converters)
Thanks,
Santosh M E -
How to display URL images and URL link (html) from Smartforms?
Hi Gurus,
I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
/people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
My code is like this..
<--- Start Code.
FORM call_smartforms.
DATA : lv_subject TYPE so_obj_des,
lc_true(1) VALUE 'X',
lw_control_parameters TYPE ssfctrlop,
lw_output_options TYPE ssfcompop,
lc_graphics(8) VALUE 'GRAPHICS',
lw_xsfparam_line TYPE ssfxsfp,
lc_extract(7) VALUE 'EXTRACT',
lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
lc_mygraphics(11) VALUE 'mygraphics/',
lc_content_id(10) VALUE 'CONTENT-ID',
lc_enable(6) VALUE 'ENABLE',
lw_job_output_info TYPE ssfcrescl,
lw_html_data TYPE trfresult,
lw_graphics TYPE ssf_xsf_gr,
lt_graphics TYPE tsf_xsf_gr,
lv_html_xstr TYPE xstring,
lw_html_raw LIKE LINE OF lw_html_data-content,
lv_incode TYPE tcp00-cpcodepage VALUE '4110',
lv_html_str TYPE string,
lv_html_len TYPE i,
lc_utf8(5) VALUE 'utf-8',
lc_latin1(6) VALUE 'latin1',
lv_offset TYPE i,
lv_length TYPE i,
lv_diff TYPE i,
lt_soli TYPE soli_tab,
lw_soli TYPE soli,
lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
lv_name TYPE mime_text VALUE 'sapwebform.htm',
lv_xstr TYPE xstring,
lw_raw TYPE bapiconten,
lt_solix TYPE solix_tab,
lw_solix TYPE solix,
lv_filename TYPE string,
lv_content_id TYPE string,
lv_content_type TYPE w3conttype,
lv_obj_len TYPE so_obj_len,
lv_bmp TYPE so_fileext VALUE 'BMP',
lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
lc_doc_bcs TYPE REF TO cl_document_bcs,
lc_bcs TYPE REF TO cl_bcs,
lc_send_exception TYPE REF TO cx_root,
lw_adsmtp TYPE lty_adsmtp,
lv_mail_address TYPE ad_smtpadr,
lc_recipient TYPE REF TO if_recipient_bcs,
lc_send_request TYPE REF TO cl_bcs,
lv_sent_to_all TYPE os_boolean.
DATA : v_language TYPE sflangu VALUE 'E',
v_e_devtype TYPE rspoptype.
v_form_name = 'ZTEST_EMAIL'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = v_form_name
IMPORTING
fm_name = v_namef
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc = 0.
break mhusin.
ENDIF.
starting here. ***
Set title for the output
lv_subject = 'Smartforms.'.
Set control parameters to "no dialog"
lw_control_parameters-no_dialog = lc_true.
IF lw_service_subject-code = lc_fm1.
*--- To get output device type
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = v_language
i_application = 'SAPDEFAULT'
IMPORTING
e_devtype = v_e_devtype.
lw_output_options-tdprinter = v_e_devtype.
lw_control_parameters-getotf = 'X'.
IF sy-subrc = 0.
break mhusin.
ENDIF.
Set output options
lw_output_options-xsf = lc_true.
lw_output_options-xsfcmode = lc_true.
lw_output_options-xsfoutmode = 'A'.
lw_output_options-xsfoutdev = space.
lw_output_options-xsfformat = lc_true.
lw_xsfparam_line-name = lc_graphics.
lw_xsfparam_line-value = lc_extract.
APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
lw_xsfparam_line-name = lc_graphics_directory.
lw_xsfparam_line-value = lc_mygraphics.
APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
lw_xsfparam_line-name = lc_content_id.
lw_xsfparam_line-value = lc_enable.
APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
Get the smartform content
CALL FUNCTION v_namef
EXPORTING
control_parameters = lw_control_parameters
output_options = lw_output_options
*pass other application specific parameters (eg order number, items ).
IMPORTING
job_output_info = lw_job_output_info
TABLES
tt_tabh = tt_tabh
tt_tabb = tt_tabb
tt_tabf = tt_tabf
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc = 0.
break mhusin.
ENDIF.
lw_html_data = lw_job_output_info-xmloutput-trfresult.
lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
CLEAR lv_html_xstr.
LOOP AT lw_html_data-content INTO lw_html_raw.
CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
ENDLOOP.
lv_html_xstr = lv_html_xstr(lw_html_data-length).
CALL FUNCTION 'SCP_TRANSLATE_CHARS'
EXPORTING
inbuff = lv_html_xstr
incode = lv_incode
csubst = lc_true
substc_space = lc_true
IMPORTING
outbuff = lv_html_str
outused = lv_html_len
EXCEPTIONS
OTHERS = 1.
*HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
*EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
CALL METHOD html_control - >load_mime_object
EXPORTING
object_id = 'ZWN'
object_url = 'ZWN.GIF'
EXCEPTIONS
OTHERS = 1.
REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
break mhusin.
lv_html_len = STRLEN( lv_html_str ).
lv_offset = 0.
lv_length = 255.
WHILE lv_offset < lv_html_len.
lv_diff = lv_html_len - lv_offset.
IF lv_diff > lv_length.
lw_soli-line = lv_html_str+lv_offset(lv_length).
ELSE.
lw_soli-line = lv_html_str+lv_offset(lv_diff).
ENDIF.
APPEND lw_soli TO lt_soli.
ADD lv_length TO lv_offset.
ENDWHILE.
CREATE OBJECT lc_mime_helper.
CALL METHOD lc_mime_helper->set_main_html
EXPORTING
content = lt_soli
filename = lv_name
description = lv_subject.
LOOP AT lt_graphics INTO lw_graphics.
CLEAR lv_xstr.
LOOP AT lw_graphics-content INTO lw_raw.
CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
ENDLOOP.
lv_xstr = lv_xstr(lw_graphics-length).
lv_offset = 0.
lv_length = 255.
CLEAR lt_solix[].
WHILE lv_offset < lw_graphics-length.
lv_diff = lw_graphics-length - lv_offset.
IF lv_diff > lv_length.
lw_solix-line = lv_xstr+lv_offset(lv_length).
ELSE.
lw_solix-line = lv_xstr+lv_offset(lv_diff).
ENDIF.
APPEND lw_solix TO lt_solix.
ADD lv_length TO lv_offset.
ENDWHILE.
CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
lv_content_type = lw_graphics-httptype.
lv_obj_len = lw_graphics-length.
*Add images to the email
CALL METHOD lc_mime_helper->add_binary_part
EXPORTING
content = lt_solix
filename = lv_filename
extension = lv_bmp
description = lv_description
content_type = lv_content_type
length = lv_obj_len
content_id = lv_content_id.
ENDLOOP.
TRY.
lv_subject = lv_subject.
lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
i_subject = lv_subject
i_multirel_service = lc_mime_helper ).
CATCH cx_document_bcs INTO lc_send_exception.
CATCH cx_bcom_mime INTO lc_send_exception.
CATCH cx_gbt_mime INTO lc_send_exception.
ENDTRY.
Create send request
TRY.
lc_bcs = cl_bcs=>create_persistent( ).
CATCH cx_send_req_bcs INTO lc_send_exception.
ENDTRY.
TRY.
lc_bcs->set_document( i_document = lc_doc_bcs ).
CATCH cx_send_req_bcs INTO lc_send_exception.
ENDTRY.
Set-up email receiver
lv_mail_address = '[email protected]'.
TRANSLATE lv_mail_address TO UPPER CASE.
TRY.
lc_recipient = cl_cam_address_bcs=>create_internet_address(
i_address_string = lv_mail_address ).
CATCH cx_address_bcs INTO lc_send_exception.
ENDTRY.
TRY.
lc_bcs->add_recipient( i_recipient = lc_recipient ).
CATCH cx_send_req_bcs INTO lc_send_exception.
ENDTRY.
Send smartforms as HTML email
TRY.
lc_bcs->send( ).
CATCH cx_send_req_bcs INTO lc_send_exception.
ENDTRY.
COMMIT WORK.
WRITE:/ 'Mail sent'.
ENDFORM. "call_smartforms
End Code --->
Thanks and Regards.1- put your images in a directory under the web app directory. Example: app/images/
2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead
Maybe you are looking for
-
Budgetary Ledger without PBET and due date
Hello, My customer have following requirement: 1. Budgetary Ledger to be used. 2. Commitment items created from for example funds reservation should reserved budget base on due date from payment budget. I use update profile 000100 (payment budget, pa
-
Folders and duplicates everywhere; empty folders... a mess in the Library
I am tired of iPhoto's difficulty to use as soon as you modify pix and try to move pix from a computer to another. It creates tones of duplicates files, empty folders and doesn't even recognize px it already imported. I have the same pix floating eve
-
Need to migrate Acrobat from Windows to iOS
Just bought a Mac and need to transfer Adobe Acrobat account to the Mac from my former Windows platform. How? Thanks, T
-
I am finding all the Apple TV apps are gone
I am finding all the Apple TV apps are disappeared except settings and computer. I have setup automatic software upgrade and I an am not sure if one of the auto upgrades went wrong. I have tried to restart and reset, but no luck. Any help is apprecia
-
Why I can't open iPhoto in my MacBook
Why can't open my iPhoto library