How to extract original file contents from content server
Hi,
1)How can we extract original file contents from the content server (which in our case is SAP database itself)...
2)What exactly is PHIO_ID and LOIO_ID?
Thanks and regards,
Santhosh Kumar U.P
Hi,
concerning your first question - please decribe, what you are trying to do.
Question 2:
LOIO_ID is the ID of the Logical Information Object. A LOIO is not a real document, but kind of a virtual document, a containerfor all "real" versions of a document. A PHIO (physical info object) is a real document.
you can read more at http://sercie.sap.com/Kpro
Kind regards,
Carl
Similar Messages
-
How to get Deleted File details from Content DataBase?
Hi,
I have uploaded one pdf document in to SharePoint Document Library. After some days i have removed it.
File has removed from Site.
Does record available in Content Data Base for the deleted file? Which table should i refer?
Thanks & Regards
Poomani SankaranHi,
According to your description, my understanding is that you want to get the deleted file record in sql database table.
If you have backed up the Content Data Base, then you can find the deleted file information in AllDocs andAllDocStreams table. You need to use "inner join" to get the whole information.
More information:
How to recover SharePoint document once deleted from recycle bin
Thanks
Best Regards,
Jerry Guo
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to extract a folder (and its contents) from inside a zip file?
There is a zip file which contains a folder inside it. The folder itself contains a few files. I would need to know how to extract the folder (with its contents) from inside a zip file.
I have found a few unzipping code samples which show how to handle a folder inside a zip file. An example is shown below:
public static void extract(String workingDirectory, byte[] zipFile)
throws Exception {
ByteArrayInputStream byteStream = new ByteArrayInputStream(zipFile);
ByteArrayOutputStream out = new ByteArrayOutputStream();
ZipInputStream zipStream = new ZipInputStream(byteStream);
ZipEntry zipEntry = null;
String nameZipEntry = null;
byte[] contentZiphttp://forum.java.sun.com/post!default.jspa?forumID=31#
Click for code tagsEntry = null;
boolean isDirectory = false;
int indexFileSeparator = -1;
String directory = null;
String fileName = null;
while ( (zipEntry = zipStream.getNextEntry()) != null )
nameZipEntry = workingDirectory + File.separator + zipEntry.getName();
isDirectory = zipEntry.isDirectory();
if (isDirectory) {
File file = new File(nameZipEntry);
file.mkdirs();
else
// read zipEntry
byte[] buf = new byte[1024];
int c = 0;
while ( (c = zipStream.read(buf)) != -1)
out.write(buf, 0, c);
indexFileSeparator = nameZipEntry.lastIndexOf(File.separator);
directory = nameZipEntry.substring(0, indexFileSeparator);
fileName = nameZipEntry.substring(indexFileSeparator+1,nameZipEntry.length());
FileSystemTools.createFile(directory, fileName, out);
out.reset();
zipStream.closeEntry();
zipStream.close();
byteStream.close();
}The code sample which deals with the part where the zipEntry is a directory creates a directory with the same path and name. (highlighted in bold)
Another similar variation is:
File file = new File(dirDestiny.getAbsolutePath() + File.separator + zipEntry.getName() );
if(zipEntry.isDirectory())
file.mkdirs();When the code creates a directory for the folder, does it unzip the contents inside the folder as well?
If not, how do I extract the files inside the folder?Have you already tried to see if the sample code you downloaded works or not? Maybe if you try out the code yourself you can see if it extracts files from a directory within a zip file?
I like to use pkzip. It is a command line compression/uncompression tool that can be used from a batch file. If you assignment involves unzipping large amount of zip files on a regular basis, I recommend taking a look at pkzip. -
How to extract rpt file from .b1px file in SAP B1
How to extract rpt file from .b1px file in SAP B1
Hi Trupti,
You will not be able to export .b1px file without importing in SAP B1.
Please import .b1px file in SAP B1 and then export .rpt file from SAP B1 one by one.
Hope this helps
Regards::::
Atul Chakraborty -
How to extract DB FILE FROM NONSAP SYSTEM IN BI-7
how to extract DB FILE FROM NONSAP SYSTEM IN BI-7
hi,
chk the links for extraction using DB
Extraction using DB connect
http://help.sap.com/saphelp_nw70/helpdata/EN/58/54f9c1562d104c9465dabd816f3f24/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/0ffb40af87ee6fe10000000a1550b0/frameset.htm
Extract data from oracle DB to SAP BI 7.0
Ramesh -
How to extract single file from multipart zip archives?
Hello,
I have a 10 parts of zip files that contains single file. When I extracted these, each program taking an action seperatly to each parts and gave me 10 files in a different folders. In a Windows, it is so simple. Winzip,winrar automaticaly discovering that are the parts of a single file and give me that.
My question is simple: How to extract single file from a multipart zip/rar archives ?
I know a way in "Terminal" but it is not comfortable for big parts.I tried with UnArchiver but it extracted each file seperately like showen in a photo
-
Hi All
how do we extract SDA files.......
we started adapter development by testing sample code in 'sample_ra.jar' file, available in sample_ra.sda, and deployed on XI server. now we want to see all jar files available in 'sample_ra.sda'.
if any one already gone through adapter development have any idea, how to extract SDA file, help me out Pls .......... very urgent.
Regards
RajeshHI,
In general SDA files are to be deployed into Server using SDM.
see the below link , how to deploy
http://help.sap.com/saphelp_webas630/helpdata/en/05/4fac3e00c8b014e10000000a114084/content.htm
Also
you can unzip the file with WinZip or WinRar edit the xml configuration file and zip it back together (in ZIP format and not RAR!).
Also
how to deploy ear files from command line
Tools like zipgenius http://www.zipgenius.it/intweb/features.htm#Innovazione, Private encryptor http://www.filesweb.com/private-encryptor/ and securefile http://www.devsolutions.net/htmlpages/securefile.html should help you further.
Regards
Chilla -
How to have a live feed from application server log file (realtime viewr )
how to have a live feed from application server log file (realtime viewr for apps log files)
hi , thank you for reading my post.
is there any way to have a live feed of Application server log ?
for example is there any application that can watch the log file and show the changes as new log items come in ?
can some one with more experience help ?Your question would be more suited to the Developer Forums
http://devforums.apple.com
but anyway...
My goal is to develop a web application that is able to run on iPhone too, to capture the audio and video content from its camera and mic.
Web Apps running in Safari don't have access to the camera or mic hardware.
Or I should built a native application distributed through Apple store?
That is your only option, although such a system already exists:
http://itunes.apple.com/us/app/ustream-live-broadcaster/id319362690?mt=8 -
How to extract CPIO file to install Oracle in LINUX REDHAT9
I DOWNLOADED THE ORACLE 9I SOFTWARE FROM ORACLE SITE FOR
LINUX REDHAT9. NOW I DONT KNOW HOW TO EXTRACT THE FILE WITH CPIO.
CAN ANY BODY HELP ME.
THANKS.extract the cpio file with the following command:
cpio -idmv < filename.cpio
hope this will help you
SUMIT -
How to extract .bin file on mac?
Dear Team,
How to extract .bin file on mac os ? please help me
regards,
kalaiAlthough the link posted by the other responder shows .bin files to be a copy of RAW CD or DVD data in my experience most .bin files are some type of configuration file mainly used with internet routers and other pieces of PC/Networking equipment.
Just where did this .bin file come from and what is it associated with that you are trying to open on your Mac?
If it is a router configuration file that you downloaded you don't open it on the Mac. You log into your router and go to the update firmware section and browse to that file stored on your Mac hard drive and let the router handle opening and updated the routers firmware. -
How to extract .SAR files
Hi All
Can anybody tell me how to extract .SAR files. Is it possible through sapcar.exe, if so how.
Thanks in advanceHi,
reading the note, I found that it refers to the notes 480180 and 13719 for more information about applying the patch. I can not tell you wether you have to apply this patch or not...
The patch seems to contain a changed SAP Script form due to some legal changes in India - if you need the changes to this form, you'll have to apply it.
Basically - this is what note 13719 says - copy the cofile to /usr/sap/trans/cofiles, the data file to /usr/sap/trans/data, go to STMS, add P6BK252127 to the import queue (open the import queue of your system, go to Extras -> Other Requests -> Add) of your system and import it. Note 13719 says to import from the operating system level by calling tp directly, using STMS should also work.
Best regards,
Elmar. -
How to extract audit log data from every document library in site collection using powershell?
Hi All,
I have n number of document library in one site collection,
My query is- How to extract audit log data from every document library in a site collection using powershell?
Please give solution as soon as possible?Hi inguru,
For SharePoint audit log data, These data combine together in site collection. So there is no easy way to extract audit log data for document library.
As a workaround, you can export the site collection audit log data to a CSV file using PowerShell Command, then you can filter the document library audit log data in Excel.
More information:
SharePoint 2007 \ 2010 – PowerShell script to get SharePoint audit information:
http://sharepointhivehints.wordpress.com/2014/04/30/sharepoint-2007-2010-powershell-script-to-get-sharepoint-audit-information/
Best Regards
Zhengyu Guo
TechNet Community Support -
How to download a file version from office 365 using csom
I need to download an older file version from office 365 and get the data into a byte array. I have no trouble downloading the latest version with File.OpenBinaryStream() and I have no trouble loading the previous file versions with File.Versions. But now
I need to actually download an older version of the file and it seems the only way is to use File.OpenBinaryDirect. So I am creating a client context using my oAuth access token and providing the correct path, but I am getting a (401) Unauthorized
error. Looking with Fiddler I can see that the call to OpenBinaryDirect is somehow trying to post to my file URL and the server is responding with 401.
context = TokenHelper.GetClientContextWithAccessToken(SPHostUrl, AccessToken);
FileInformation info = File.OpenBinaryDirect(context, "/" + _fileVersion.Url); //throws 401
//leading slash required otherwise ArgumentOutOfRangeException
I have to be able to access the older file versions with my c# code -- I don't have a viable app without that ability -- any help urgently needed and greatly appreciated!Thank you SO much (Can't wait for the next release)!
For anyone else who lands here, here's the code I ended up using:
// VersionAccessUser and VersionAccessPassword are stored in web.config
// web.Url is loaded via the clientContext
// myVersion is the FileVersion I got from the file's Versions.GetById() method
// probably a lot of ways to get hostUrl, it just needs to be https://yourdomain.sharepoint.com/
// - I'm running my app from a subweb
// I had trouble following the links to get the full MsOnlineClaimsHelper code
// (the one on msdn.com was missing RequestBodyWriter, WSTrustFeb2005ContractClient,
// and IWSTrustFeb2005Contract
// so I've included the code I used here.
string myVersionFullUrl = string.Format("{0}/{1}", web.Url, myVersion.Url);
string userName = WebConfigurationManager.AppSettings.Get("VersionAccessUser");
string strPassword = WebConfigurationManager.AppSettings.Get("VersionAccessPassword");
string hostUrl = Regex.Replace(web.Url, "([^/]+//[^/]+/).*", "$1");
MsOnlineClaimsHelper claimsHelper = new MsOnlineClaimsHelper(hostUrl, userName, strPassword);
var client = new WebClient();
client.Headers["Accept"] = "/";
client.Headers.Add(HttpRequestHeader.UserAgent, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
client.Headers.Add(HttpRequestHeader.Cookie, claimsHelper.CookieContainer.GetCookieHeader(new Uri(hostUrl)));
var document = client.DownloadString(myVersionFullUrl);
// These classes are needed to download old versions of files (see: http://social.msdn.microsoft.com/Forums/en-US/7746d857-d351-49cc-b2f0-496663239e02/how-to-download-a-file-version-from-office-365-using-csom?forum=sharepointdevelopment)
// I cobbled this file from http://social.technet.microsoft.com/Forums/msonline/en-US/4e304493-7ddd-4721-8f46-cb7875078f8b/problem-logging-in-to-office-365-sharepoint-online-from-webole-hosted-in-the-cloud?forum=onlineservicessharepoint
// and http://fredericloud.com/2011/01/11/connecting-to-sharepoint-with-claims-authentication/
using Microsoft.IdentityModel.Protocols.WSTrust;
using Microsoft.SharePoint.Client;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.Text;
using System.Web;
using System.Xml;
using System.Xml.Linq;
namespace DPSiDoxAppWeb.Helpers
/// <summary>
/// Create a new contract to use for issue claims for the SharePoint requests
/// </summary>
[ServiceContract]
public interface IWSTrustFeb2005Contract
[OperationContract(ProtectionLevel = ProtectionLevel.EncryptAndSign,
Action = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue",
ReplyAction = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue",
AsyncPattern = true)]
IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state);
Message EndIssue(IAsyncResult asyncResult);
/// <summary>
/// Implement the client contract for the new type
/// </summary>
public class WSTrustFeb2005ContractClient : ClientBase<IWSTrustFeb2005Contract>, IWSTrustFeb2005Contract
public WSTrustFeb2005ContractClient(Binding binding, EndpointAddress remoteAddress)
: base(binding, remoteAddress)
public IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state)
return Channel.BeginIssue(request, callback, state);
public Message EndIssue(IAsyncResult asyncResult)
return Channel.EndIssue(asyncResult);
/// <summary>
/// Create a class that will serialize the token into the request
/// </summary>
class RequestBodyWriter : BodyWriter
readonly WSTrustRequestSerializer _serializer;
readonly RequestSecurityToken _rst;
/// <summary>
/// Constructs the Body Writer.
/// </summary>
/// <param name="serializer">Serializer to use for serializing the rst.</param>
/// <param name="rst">The RequestSecurityToken object to be serialized to the outgoing Message.</param>
public RequestBodyWriter(WSTrustRequestSerializer serializer, RequestSecurityToken rst)
: base(false)
if (serializer == null)
throw new ArgumentNullException("serializer");
_serializer = serializer;
_rst = rst;
/// <summary>
/// Override of the base class method. Serializes the rst to the outgoing stream.
/// </summary>
/// <param name="writer">Writer to which the rst should be written.</param>
protected override void OnWriteBodyContents(XmlDictionaryWriter writer)
_serializer.WriteXml(_rst, writer, new WSTrustSerializationContext());
public class MsOnlineClaimsHelper
#region Properties
readonly string _username;
readonly string _password;
readonly bool _useRtfa;
readonly Uri _host;
CookieContainer _cachedCookieContainer = null;
DateTime _expires = DateTime.MinValue;
#endregion
#region Constructors
public MsOnlineClaimsHelper(string host, string username, string password)
: this(new Uri(host), username, password)
public MsOnlineClaimsHelper(Uri host, string username, string password)
_host = host;
_username = username;
_password = password;
_useRtfa = true;
public MsOnlineClaimsHelper(Uri host, string username, string password, bool useRtfa)
_host = host;
_username = username;
_password = password;
_useRtfa = useRtfa;
#endregion
#region Constants
public const string office365STS = "https://login.microsoftonline.com/extSTS.srf";
public const string office365Login = "https://login.microsoftonline.com/login.srf";
public const string office365Metadata = "https://nexus.microsoftonline-p.com/federationmetadata/2007-06/federationmetadata.xml";
public const string wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
public const string wsu = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
private const string userAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
#endregion
class MsoCookies
public string FedAuth { get; set; }
public string rtFa { get; set; }
public DateTime Expires { get; set; }
public Uri Host { get; set; }
// Method used to add cookies to CSOM
public void clientContext_ExecutingWebRequest(object sender, WebRequestEventArgs e)
e.WebRequestExecutor.WebRequest.CookieContainer = getCookieContainer();
//e.WebRequestExecutor.WebRequest.UserAgent = userAgent;
// Creates or loads cached cookie container
CookieContainer getCookieContainer()
if (_cachedCookieContainer == null || DateTime.Now > _expires)
// Get the SAML tokens from SPO STS (via MSO STS) using fed auth passive approach
MsoCookies cookies = getSamlToken();
if (cookies != null && !string.IsNullOrEmpty(cookies.FedAuth))
// Create cookie collection with the SAML token
_expires = cookies.Expires;
CookieContainer cc = new CookieContainer();
// Set the FedAuth cookie
Cookie samlAuth = new Cookie("FedAuth", cookies.FedAuth)
Expires = cookies.Expires,
Path = "/",
Secure = cookies.Host.Scheme == "https",
HttpOnly = true,
Domain = cookies.Host.Host
cc.Add(samlAuth);
if (_useRtfa)
// Set the rtFA (sign-out) cookie, added march 2011
Cookie rtFa = new Cookie("rtFA", cookies.rtFa)
Expires = cookies.Expires,
Path = "/",
Secure = cookies.Host.Scheme == "https",
HttpOnly = true,
Domain = cookies.Host.Host
cc.Add(rtFa);
_cachedCookieContainer = cc;
return cc;
return null;
return _cachedCookieContainer;
public CookieContainer CookieContainer
get
if (_cachedCookieContainer == null || DateTime.Now > _expires)
return getCookieContainer();
return _cachedCookieContainer;
private MsoCookies getSamlToken()
MsoCookies ret = new MsoCookies();
try
var sharepointSite = new
Wctx = office365Login,
Wreply = _host.GetLeftPart(UriPartial.Authority) + "/_forms/default.aspx?wa=wsignin1.0"
//get token from STS
string stsResponse = getResponse(office365STS, sharepointSite.Wreply);
// parse the token response
XDocument doc = XDocument.Parse(stsResponse);
// get the security token
var crypt = from result in doc.Descendants()
where result.Name == XName.Get("BinarySecurityToken", wsse)
select result;
// get the token expiration
var expires = from result in doc.Descendants()
where result.Name == XName.Get("Expires", wsu)
select result;
ret.Expires = Convert.ToDateTime(expires.First().Value);
HttpWebRequest request = createRequest(sharepointSite.Wreply);
byte[] data = Encoding.UTF8.GetBytes(crypt.FirstOrDefault().Value);
using (Stream stream = request.GetRequestStream())
stream.Write(data, 0, data.Length);
stream.Close();
using (HttpWebResponse webResponse = request.GetResponse() as HttpWebResponse)
// Handle redirect, added may 2011 for P-subscriptions
if (webResponse.StatusCode == HttpStatusCode.MovedPermanently)
HttpWebRequest request2 = createRequest(webResponse.Headers["Location"]);
using (Stream stream2 = request2.GetRequestStream())
stream2.Write(data, 0, data.Length);
stream2.Close();
using (HttpWebResponse webResponse2 = request2.GetResponse() as HttpWebResponse)
ret.FedAuth = webResponse2.Cookies["FedAuth"].Value;
ret.rtFa = webResponse2.Cookies["rtFa"].Value;
ret.Host = request2.RequestUri;
else
ret.FedAuth = webResponse.Cookies["FedAuth"].Value;
ret.rtFa = webResponse.Cookies["rtFa"].Value;
ret.Host = request.RequestUri;
catch (Exception ex)
return null;
return ret;
static HttpWebRequest createRequest(string url)
HttpWebRequest request = HttpWebRequest.Create(url) as HttpWebRequest;
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.CookieContainer = new CookieContainer();
request.AllowAutoRedirect = false; // Do NOT automatically redirect
request.UserAgent = userAgent;
return request;
private string getResponse(string stsUrl, string realm)
RequestSecurityToken rst = new RequestSecurityToken
RequestType = WSTrustFeb2005Constants.RequestTypes.Issue,
AppliesTo = new EndpointAddress(realm),
KeyType = WSTrustFeb2005Constants.KeyTypes.Bearer,
TokenType = Microsoft.IdentityModel.Tokens.SecurityTokenTypes.Saml11TokenProfile11
WSTrustFeb2005RequestSerializer trustSerializer = new WSTrustFeb2005RequestSerializer();
WSHttpBinding binding = new WSHttpBinding();
binding.Security.Mode = SecurityMode.TransportWithMessageCredential;
binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
binding.Security.Message.EstablishSecurityContext = false;
binding.Security.Message.NegotiateServiceCredential = false;
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
EndpointAddress address = new EndpointAddress(stsUrl);
using (WSTrustFeb2005ContractClient trustClient = new WSTrustFeb2005ContractClient(binding, address))
trustClient.ClientCredentials.UserName.UserName = _username;
trustClient.ClientCredentials.UserName.Password = _password;
Message response = trustClient.EndIssue(
trustClient.BeginIssue(
Message.CreateMessage(
MessageVersion.Default,
WSTrustFeb2005Constants.Actions.Issue,
new RequestBodyWriter(trustSerializer, rst)
null,
null));
trustClient.Close();
using (XmlDictionaryReader reader = response.GetReaderAtBodyContents())
return reader.ReadOuterXml(); -
I have had my old Iphone 5s replaced with a new one but I would like to know how to extract my old contacts from the iTunes backup? Please explain in basic english i am a beginner
Hey,
I think you will find that you have to have a debit/credit card stored on yur account regardless of whether your have iTunes Credit or want to purchase a free App. I don't know why, I assume its for ID verification or is part of the terms and conditions. I occasionally have to re-verify my credit card info even when just trying to run Update on one of my Apps or like I said downloading a free App.
If you need further clarification all you can do is contact iTunes Support:
https://expresslane.apple.com/ServiceOptionAction.action
Hope this helps. Andrew -
how to extract war file? explain technoloby behind in war
hi
go to your dir :
jar xvf filename.warhelp, simply type jar, above baluc mention is right, jar/war/ear is like a zip file contains *.classes, images, xml , etc....
jar i hope it will help u
Maybe you are looking for
-
Share Point folder size limit - File Services
I created a new folder inside a share point using Server Admin. Is there a way to set a folder size limit (quota) for that folder. P.S. I am NOT talking about user accounts quotas for home folders created using Workgroup Manager! ...Just any new fold
-
Embedded video/audio player
Any recommendations on which embedded video or audio player to use for Dreamweaver? I would like something that will give me a playlist.
-
I am working on a ListNode and I need to provide implementation for a garbageCollection() method. What the method needs to do is // recalculate start address for each node in alloclist // delete all but the first node in freelist, // update start add
-
Error message after rental from ATV
Just rented a movie from Apple on my Computer. Moved it to ATV to watch and get the error message"Apple TV is not authorized to play this content". Went through the reset process/reboot process(unplugged ATV) Restarted Computer-no help. Any ideas?
-
Is there a way to reset iPod touch 4th gen without the sleep/wake button?
Hey everyone! My iPod touch 4th gen power button is jammed into the iPod itself. This is obviously a big issue, but is not the main point of this post. My iPod has been laggy and slow, so I need to reset it. (NOT restore, but slide to power off; pres