Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the convention for saving files created by a WBI plugin?

Convention files plugin Saving wbi
0
10 Posted

What is the convention for saving files created by a WBI plugin?

0

In general, a WBI plugin can store files wherever and however it wants. However, we prefer to put them in the data directory, off the WBI home directory, to keep things organized. Because many plugins may be storing their own data, it helps to have one folder in the data directory for each plugin. Alternaitively, if your plugin needs merely to save settings and the like, have a look at our new Persistence classes, as these should simplify your job. • The MegInputStream is empty. What went wrong? WBI represents HTTP request/response bodies as streams. When a MEG processes a document, it reads the data from a MegInputStream and writes data to a MegOutputStream. If the data that is read from a MegInputStream is supposed to be available in subsequent MEGs (i.e., ones that follow the current MEG in the processing chain), it must be explicitly written to the MegOutputStream by the MEG. If the data are not passed along, the next MEG in the processing chain will receive an empty MegInputStream

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123