How do I stream or read uploaded requests 1KB at a time?
Hi there,<p>
I am working on uploading files using the input type=file tag. Once a user submits and uploads the file, is there any way of me to read and process this request a chunk at a time, say 1KB? I know there is the request.getInputStream(). I think this will process the whole stream into memory at once, which I don't want. If anyone can give me any insight, I will greatly appreciate it. Thanks in advance.
In Dreamweaver CS3 for Mac users there is a check box that
allows you to view multiple documents in the same DW window with
tabs. Directory Path: Preferences/General/Document Options/Open
Documents in Tabs.
Using this option you can view any document that DW can open
including templates, HTML, CSS documents, and the like. Each is
fully editable as you tab among the open documents.
Similar Messages
-
How can a streams module read files?
I have a streams module which runs over IP. When it gets loaded
for the first time, a data file has to be read and data structures
have to be initialised accordignly.
But I'm not able to use open, read calls from inside the module (naturally!).
Any pointers?
Here is the sample code:
int _init(void)
/* open (), read () calls have be inserted here */
return (mod_install(&sample_modlinkage));
}See 'File I/O from within a driver' thread in this forum for a discussion...
-
IPhoto keeps reading "uploading 25 photos" on Photo Stream
When I go into iCloud or My Photo Stream on iPhoto (on my PowerBook), it continually reads "Uploading 25 photos" in the upper right hand corner. This is true after restarting several times. It looks like all the pertinent photos are there, what are the 25 photos, and what's keeping them from uploading, and/or how do I stop it?
Both my computers do this. I tried to rebuild my library and even re-installed iphoto, but neither fixes the problem. Very frustrating.
-
How to read Transort Request long documentation.
Hello All,
My requirement is to read Transport Request long documentation.
1. Open TR in SE10
2. Double click on TR number.
3. Click on documentation tab.
Here a long text can be maintained. I want to write a code to read this documentation.
Please let me know how to do this.
Thanks,
AnupHi!
try this FM please:
program zjdtest.
parameter p_req type TRDYSE01SN-TR_TRKORR.
DATA: lt_docu TYPE rsfbtltab.
start-of-selection.
CALL FUNCTION 'TRINT_DOCU_INTERFACE'
EXPORTING
iv_object = p_req
TABLES
tt_line = lt_docu
EXCEPTIONS
error = 0. -
How to provide streaming in J2EE web application?
Hi Friends,
I want to build web application which will provide streaming of data.
This data may be in raw data, binary, files, audio, video etc. As we are using HTTP protocol for web application, then how to do streaming between server and client using HTTP protocol i.e in request response manner.
If we want to send response of ~1 GB to client using servlet, then it's good idea that we should use data streaming concept. For data streaming if we use request/response architecture then servlet should send ~1 GB data in one go. Is it possible? And if we use data streaming tech. Is it our responsibility to do framing, maintaining data sequence, encoding/decoding, merge data and then store on client side?
Any help will be appreciated.
ThanksOne idea is RTP
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/ -
How to get file name for failed request in JSOM
hello friends,
i am uploading files to sharepoint 2013 document library. due to some problem when a file is not uploaded request is failed and failed callback handler is executed. at this time how i can know for which file has not been uploaded.
as i am uploading multiple files so it is necessary to know for which file error occurs.
please help
Thanks in advance.
MukeshHi Z..
it will be hard for any one to understand the code. how ever I have provided bellow.
theme is I need to upload multiple files selecting one by one asynchronously when a file will begin to upload It will show status of file name with processing image. similarly for other files.
ones file successfully uploaded processing image will get hidden. and delete will appear.
when error occurs for a file then processing div need to be removed for which I need file name when request failed. in failed handler
function uploadData()
var input = $("#fldFile")[0];
if (input) {
$("#uploadedfile").append("<div class='file'><label>" + input.files[0].name + "</label><div class='image'><img src='/_layouts/15/KPMG.VendorPortal.DMS/processing.gif' alt='processing..'/><img src='/_layouts/15/KPMG.VendorPortal.DMS/error.png' alt='delete' style='display:none;' /></div>");
file = input.files[0];
filename = input.files[0].name;
fr = new FileReader();
fr.onload = uploaddocument;
fr.readAsDataURL(file);
function uploaddocument()
web = clientContext.get_web();
clientContext.load(web);
list = web.get_lists().getByTitle("TempLibrary");
rootFolderUrl = list.get_rootFolder();
file = this.result;
clientContext.load(rootFolderUrl);
clientContext.executeQueryAsync(onuploaddocumentsuccess, failed);
function onuploaddocumentsuccess()
fileCreateInfo = new SP.FileCreationInformation();
fileCreateInfo.set_url(rootFolderUrl.get_serverRelativeUrl() + "/" + foldername + "/" + filename);
fileCreateInfo.set_overwrite(true);
fileCreateInfo.set_content(new SP.Base64EncodedByteArray());
// Read the binary contents of the base 64 data URL into a Uint8Array
// Append the contents of this array to the SP.FileCreationInformation
var arr = convertDataURIToBinary(file);
for (var i = 0; i < arr.length; ++i) {
fileCreateInfo.get_content().append(arr[i]);
// Upload the file to the root folder of the document library
uploadedfile= list.get_rootFolder().get_files().add(fileCreateInfo);
clientContext.load(uploadedfile);
clientContext.executeQueryAsync(documentuploaded, documentfailed);
function documentuploaded()
var fname = uploadedfile.get_name();
$("#uploadedfile").children("div").each(function () {
var flabelname = $(this).children("label").text();
if (flabelname.trim() == fname.trim())
$(this).children("div").children("img").get(0).style.display="none";
$(this).children("div").children("img").get(1).style.display="block";
alert("uploaded");
function documentfailed(sender,args)
Mukesh -
How to configure website address to http request
hi
How to configure website address to http request
(I want access JBOSS URL: http://localhost:8080/HIS/Login using website like www.HIS.com)
Please help me.What I'm trying to do is connect my laptops built in wifi adapter to my home network and connect my usb wifi adapter to my phones hotspot then combine the bandwidth into one stream so that my speed is faster.
-
HOW TO: Post a SQL statement tuning request - template posting
This post is not a question, but similar to Rob van Wijk's "When your query takes too long ..." post should help to improve the quality of the requests for SQL statement tuning here on OTN.
On the OTN forum very often tuning requests about single SQL statements are posted, but the information provided is rather limited, and therefore it's not that simple to provide a meaningful advice. Instead of writing the same requests for additional information over and over again I thought I put together a post that describes how a "useful" post for such a request should look like and what information it should cover.
I've also prepared very detailed step-by-step instructions how to obtain that information on my blog, which can be used to easily gather the required information. It also covers again the details how to post the information properly here, in particular how to use the \ tag to preserve formatting and get a fixed font output:
http://oracle-randolf.blogspot.com/2009/02/basic-sql-statement-performance.html
So again: This post here describes how a "useful" post should look like and what information it ideally covers. The blog post explains in detail how to obtain that information.
In the future, rather than requesting the same additional information and explaining how to obtain it, I'll simply refer to this HOW TO post and the corresponding blog post which describes in detail how to get that information.
*Very important:*
Use the \ tag to enclose any output that should have its formatting preserved as shown below.
So if you want to use fixed font formatting that preserves the spaces etc., do the following:
\ This preserves formatting
\And it will look like this:
This preserves formatting
. . .Your post should cover the following information:
1. The SQL and a short description of its purpose
2. The version of your database with 4-digits (e.g. 10.2.0.4)
3. Optimizer related parameters
4. The TIMING and AUTOTRACE output
5. The EXPLAIN PLAN output
6. The TKPROF output snippet that corresponds to your statement
7. If you're on 10g or later, the DBMS_XPLAN.DISPLAY_CURSOR output
The above mentioned blog post describes in detail how to obtain that information.
Your post should have a meaningful subject, e.g. "SQL statement tuning request", and the message body should look similar to the following:
*-- Start of template body --*
The following SQL statement has been identified to perform poorly. It currently takes up to 10 seconds to execute, but it's supposed to take a second at most.
This is the statement:
select
from
t_demo
where
type = 'VIEW'
order by
id;It should return data from a table in a specific order.
The version of the database is 11.1.0.7.
These are the parameters relevant to the optimizer:
SQL>
SQL> show parameter optimizer
NAME TYPE VALUE
optimizer_capture_sql_plan_baselines boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 11.1.0.7
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
optimizer_use_invisible_indexes boolean FALSE
optimizer_use_pending_statistics boolean FALSE
optimizer_use_sql_plan_baselines boolean TRUE
SQL>
SQL> show parameter db_file_multi
NAME TYPE VALUE
db_file_multiblock_read_count integer 8
SQL>
SQL> show parameter db_block_size
NAME TYPE VALUE
db_block_size integer 8192
SQL>
SQL> show parameter cursor_sharing
NAME TYPE VALUE
cursor_sharing string EXACT
SQL>
SQL> column sname format a20
SQL> column pname format a20
SQL> column pval2 format a20
SQL>
SQL> select
2 sname
3 , pname
4 , pval1
5 , pval2
6 from
7 sys.aux_stats$;
SNAME PNAME PVAL1 PVAL2
SYSSTATS_INFO STATUS COMPLETED
SYSSTATS_INFO DSTART 01-30-2009 16:25
SYSSTATS_INFO DSTOP 01-30-2009 16:25
SYSSTATS_INFO FLAGS 0
SYSSTATS_MAIN CPUSPEEDNW 494,397
SYSSTATS_MAIN IOSEEKTIM 10
SYSSTATS_MAIN IOTFRSPEED 4096
SYSSTATS_MAIN SREADTIM
SYSSTATS_MAIN MREADTIM
SYSSTATS_MAIN CPUSPEED
SYSSTATS_MAIN MBRC
SYSSTATS_MAIN MAXTHR
SYSSTATS_MAIN SLAVETHR
13 rows selected.Here is the output of EXPLAIN PLAN:
SQL> explain plan for
2 -- put your statement here
3 select
4 *
5 from
6 t_demo
7 where
8 type = 'VIEW'
9 order by
10 id;
Explained.
Elapsed: 00:00:00.01
SQL>
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 1390505571
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 60 | 0 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| T_DEMO | 1 | 60 | 0 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN | IDX_DEMO | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("TYPE"='VIEW')
14 rows selected.Here is the output of SQL*Plus AUTOTRACE including the TIMING information:
SQL> rem Set the ARRAYSIZE according to your application
SQL> set autotrace traceonly arraysize 100
SQL> select
2 *
3 from
4 t_demo
5 where
6 type = 'VIEW'
7 order by
8 id;
149938 rows selected.
Elapsed: 00:00:02.21
Execution Plan
Plan hash value: 1390505571
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 60 | 0 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| T_DEMO | 1 | 60 | 0 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN | IDX_DEMO | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("TYPE"='VIEW')
Statistics
0 recursive calls
0 db block gets
149101 consistent gets
800 physical reads
196 redo size
1077830 bytes sent via SQL*Net to client
16905 bytes received via SQL*Net from client
1501 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
149938 rows processed
SQL>
SQL> disconnect
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsThe TKPROF output for this statement looks like the following:
TKPROF: Release 11.1.0.7.0 - Production on Mo Feb 23 10:23:08 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Trace file: orcl11_ora_3376_mytrace1.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
select
from
t_demo
where
type = 'VIEW'
order by
id
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1501 0.53 1.36 800 149101 0 149938
total 1503 0.53 1.36 800 149101 0 149938
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 88
Rows Row Source Operation
149938 TABLE ACCESS BY INDEX ROWID T_DEMO (cr=149101 pr=800 pw=0 time=60042 us cost=0 size=60 card=1)
149938 INDEX RANGE SCAN IDX_DEMO (cr=1881 pr=1 pw=0 time=0 us cost=0 size=0 card=1)(object id 74895)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1501 0.00 0.00
db file sequential read 800 0.05 0.80
SQL*Net message from client 1501 0.00 0.69
********************************************************************************The DBMS_XPLAN.DISPLAY_CURSOR output:
SQL> -- put your statement here
SQL> -- use the GATHER_PLAN_STATISTICS hint
SQL> -- if you're not using STATISTICS_LEVEL = ALL
SQL> select /*+ gather_plan_statistics */
2 *
3 from
4 t_demo
5 where
6 type = 'VIEW'
7 order by
8 id;
149938 rows selected.
Elapsed: 00:00:02.21
SQL>
SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID d4k5acu783vu8, child number 0
select /*+ gather_plan_statistics */ * from t_demo
where type = 'VIEW' order by id
Plan hash value: 1390505571
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads |
| 0 | SELECT STATEMENT | | 1 | | 149K|00:00:00.02 | 149K| 1183 |
| 1 | TABLE ACCESS BY INDEX ROWID| T_DEMO | 1 | 1 | 149K|00:00:00.02 | 149K| 1183 |
|* 2 | INDEX RANGE SCAN | IDX_DEMO | 1 | 1 | 149K|00:00:00.02 | 1880 | 383 |
Predicate Information (identified by operation id):
2 - access("TYPE"='VIEW')
20 rows selected.I'm looking forward for suggestions how to improve the performance of this statement.
*-- End of template body --*
I'm sure that if you follow these instructions and obtain the information described, post them using a proper formatting (don't forget about the \ tag) you'll receive meaningful advice very soon.
So, just to make sure you didn't miss this point:Use proper formatting!
If you think I missed something important in this sample post let me know so that I can improve it.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/Alex Nuijten wrote:
...you missed the proper formatting of the Autotrace section ;-)Alex,
can't reproduce, does it still look unformatted? Or are you simply kidding? :-)
Randolf
PS: Just noticed that it actually sometimes doesn't show the proper formatting although the code tags are there. Changing to the \ tag helped in this case, but it seems to be odd.
Edited by: Randolf Geist on Feb 23, 2009 11:28 AM
Odd behaviour of forum software -
How do i stream my iMac screen to a device that accepts component video only
I have a new iMac (2015) and I want to send my screen from my mac to a video switcher called a NewTek Tricaster 40. It only accepts component or composite video input. I want to send my iMac's screen to it in real time so I can incorporate it into my live video productions. I have attempted to use several HDMI to component converters and none have worked. I am using the Kanex Pro HDMI to Component Converter to convert the HDMI out from two HD camcorders to component and sending that into my Tricaster 40. It is seeing the signal just fine and giving me solid HD video. So I attempted to use the same Kanex Pro for the iMac. First I used apple's lightning to HDMI cable then plugged that HDMI into another Kanex Pro HDMI to component converter. No dice. I tried all the component video settings: 1080p 30PsF, 1080 24PsF, 1080i, 720p, 720/30p, 720/24p. None worked
Kanex Pro HDMI to Component Converter with Audio for PS4, Xbox One, Full HD 1080p (HDRGBRL)
https://www.google.com/shopping/product/13562420314864684603?q=Kanex+Pro+HDMI+to +Component+Converter+with+Audio+for+PS4,+Xbox+One,+Full+HD+1080p+(HDRGBRL)&espv= 2&biw=1461&bih=724&bav=on.2,or.r_cp.&bvm=bv.89947451,d.cGU&ion=1&tch=1&ech=1&psi =lcMhVcDPEpC4ogTBl4LABg.1428276117592.5&prds=paur:ClkAsKraX2IpeY7X336NKCAZO5gXZC fr9CYkefRrD0Ad_Xy607mRERaZVy-e31nis3rQppz_OgnNmy5ApOtsfxdiNa9ObBt6XIj0T_QHJnHgQS RKEgr403gF3BIZAFPVH73q3thgw88E5DYtSJ2ucji5lQO4ow&sa=X&ei=nMMhVfSkCIftoATK24GYCA& ved=0COEDEPMCMAA
Next I purchased an apple lightning to DVI adaptor. Then I plugged the DVI into this Lindy DVI to component converter. It also failed at all resolutions. None worked for SD resolutions either.
LINDY DVI-D to VGA/RGB/Component Video Converter (32562)
http://www.amazon.com/gp/offer-listing/B0012E210A/ref=olp_tab_new?ie=UTF8&condit ion=new
After hunting for a solution someone suggested that HDCP protection might be my problem. Apparently in an effort to keep people form pirating movies Microsoft and apple use HDCP to keep people form making this conversion? I'm nor sure how this works I just know that I am leagaly allowed to incorporate brief news clips into my news comentary on my youtub channel so long as I cite them and add to them substantially. I do both. So is HDCP my issue? If so what is the work around?
Sewell Direct 1x2 HDMI Splitter, v1.4, 4k by 2k support
http://www.amazon.com/gp/r.html?C=R9X3UEVFUTLF&K=AAASFVVZHH4WQ&R=3S6NDP88QPROY&T =C&U=http%3A%2F%2Fwww.amazon.com%2Fdp%2F…
NewTek has a program called IVGA that will allow me to share my screen over my local network but the frame rate is horribly choppy and is not useful for capturing video clips form youtube or game play.
Bottom line how do I stream high quality (720 /24p minimum) video from my iMac to a device that only accepts component video in.I did end up using an apple thunderbolt to DVI.
Next a DVI to HDMI.
Component Video + Digital Coaxial and Digital Optical Audio to HDMI® Converter
http:/http://www.monoprice.com/Product?c_id=101&cp_id=10114&cs_id=1011406&p_id=5 971&seq=1&format=2
After that I used an HDMI to component.
Kanex Pro HDMI to Component Converter with Audio for PS4, Xbox One, Full HD 1080p (HDRGBRL)
https://www.google.com/shopping/product/13562420314864684603?q=Kanex+Pro+HDMI+to +Component+Converter+with+Audio+for+PS4,+Xbox+One,+Full+HD+1080p+(HDRGBRL)&espv = 2&biw=1461&bih=724&bav=on.2,or.r_cp.&bvm=bv.89947451,d.cGU&ion=1&tch=1&ech=1&ps i =lcMhVcDPEpC4ogTBl4LABg.1428276117592.5&prds=paur:ClkAsKraX2IpeY7X336NKCAZO5gXZ C fr9CYkefRrD0Ad_Xy607mRERaZVy-e31nis3rQppz_OgnNmy5ApOtsfxdiNa9ObBt6XIj0T_QHJnHgQ S RKEgr403gF3BIZAFPVH73q3thgw88E5DYtSJ2ucji5lQO4ow&sa=X&ei=nMMhVfSkCIftoATK24GYCA & ved=0COEDEPMCMAA
On my iMac:
I had to go into my device settings > Display
then I set the "Optimize for:" to "CAT-6066"
after that I selected the "Scaled" option right underneath
then i selected 1080i because the Kanex Pro is designed to convert 1080i into component
I was then able to get my NewTek Tricaster 40 to recognize that component signal from the Kanex Pro and add it to my production as 1080i or as 1080p/30. The frame rate looks great and the video quality is very smooth and in real time. -
How can i stream video and audio from macbook air to my tv?
how can i stream video and audio from macbook air to my tv?
Wirelessly: you need an AirPlay - enabled device such as an AppleTV.
Wired: if your TV has an HDMI port, you need a Thunderbolt to HDMI adapter such as this one:
Mini DisplayPort to HDMI® Adapter w/ Audio Support
If your TV does not have an HDMI port you will need a converter that will convert HDMI input to whatever input your TV requires. -
I am trying to restore a phone that the screen does not work on, therefore I can't input my password. How can I bypass this and upload it to itunes?
You could follow the instructions in the support document that you linked from. There is a section regarding the passcode and the inability to use it or enter it. However, you may encounter more issues since you cannot use the screen.
-
How to schedule Job for data uploading from source to BI
Hi to all,
How to schedule Job for data uploading from source to BI,
Why we required and how we do it.
As I am fresher in BI, I need to know from bottom.
Regards
Pavneet RanaHi.
You can create [process chain |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502b2998-1017-2d10-1c8a-a57a35d52bc8?quicklink=index&overridelayout=true]for data loading pocess and schedule start process to any time/date etc ...
Regadrs. -
How can I stream my iTunes library to my iPhone or iPad?
How can I stream my iTunes library to my iPhone or iPad?
Thank you so much for the replies.
Thanks all it took for me to discover that my Sign In was wrong.
I was using my regular email of ******@Gmail.com instead of correctly using ******@me.com!
It then went through without a hitch.
All is well. -
hi i have the same apple id for my iPad and my mac. my iPhone has a different one. My i cloud on my mac seems to be the iCloud on my iPad, if that makes sense so its not sending my photos from my mac to the cloud. how do i change it to upload mac pictures instead? thanks
Did you go into Settings > Store and then tap your old ID, sign out and then enter your new ID?
-
How can I stream video from my laptop to apple tv while doing a different task on my laptop?
How can I stream video from my laptop to apple tv while doing a different task on my laptop? I want to be able to stream a video to my tv while browsing the internet or working on writing on my laptop. Thanks
You would have to use airplay within iTunes then, unless you want to use 3rd party software (ie Beamer)
Maybe you are looking for
-
Unable to get the values from PAYLOAD
Hi, i'm unable to get the values of payload. When i use currentTask = client.getTaskQueryService().getTaskDetailsById(workflowContext, taskID); Element payload = (Element)currentTask.getPayloadAsElement(); node = (Element)payload.getFirstChild(); Sys
-
Smartforms - upper frame in table
Hi expert, I created a smartform. Inside a main window I put a table with outer frame, but in display mode there's not the upper frame but only left, right and lower frame. why? any idea ?
-
Ya, try to download a 700 MB zip file !! with whatever available means
Please a bit more commercial efforts, even if your name is ORACLE Because at the end it is in your interest !! Have you ever tried to download a 700 MB zip file !! to your private PC ? Me, I don't even dare to try!
-
Having a lot of trouble with mac. Am running snow leopard 10.6.8 combo. Downloaded new safari new flash player new shockwave. Ran disk permissions. Safari still won't open system preferences or App Store. On other sites usually the wheel spins
-
Newbye question: what is javax.media.jai ?
Hello, What is javax.media.jai for, and what has it more than java.awt.image? I am experiencing difficulties with colormap manipulations in the standard java.awt.image classes, so I'm wondering if javax.media.jai could help. Its classes are not in th